diff --git a/sql/shared-client/src/main/java/org/elasticsearch/xpack/sql/client/shared/Version.java b/sql/shared-client/src/main/java/org/elasticsearch/xpack/sql/client/shared/Version.java index f991aa3d792..b63a4765a7f 100644 --- a/sql/shared-client/src/main/java/org/elasticsearch/xpack/sql/client/shared/Version.java +++ b/sql/shared-client/src/main/java/org/elasticsearch/xpack/sql/client/shared/Version.java @@ -76,7 +76,7 @@ public abstract class Version { String ver = "Unknown"; String hash = ver; - if (urlStr.startsWith("file:/") && urlStr.endsWith("-SNAPSHOT.jar")) { + if (urlStr.startsWith("file:/") && urlStr.endsWith(".jar")) { try (JarInputStream jar = new JarInputStream(url.openStream())) { Manifest manifest = jar.getManifest(); hash = manifest.getMainAttributes().getValue("Change");