diff --git a/src/main/java/sorald/cli/SoraldVersionProvider.java b/src/main/java/sorald/cli/SoraldVersionProvider.java index 8f4d3ba3f..50917ca6e 100644 --- a/src/main/java/sorald/cli/SoraldVersionProvider.java +++ b/src/main/java/sorald/cli/SoraldVersionProvider.java @@ -27,8 +27,7 @@ public String[] getVersion() { public static String getVersionFromPropertiesResource(String resourceName) { Properties props = new Properties(); try { - props.load( - SoraldVersionProvider.class.getClassLoader().getResourceAsStream(resourceName)); + props.load(SoraldVersionProvider.class.getResourceAsStream("/" + resourceName)); } catch (Exception e) { return LOCAL_VERSION; }