diff --git a/lib/bld/bld-wrapper.properties b/lib/bld/bld-wrapper.properties index d29a55f..b23895b 100644 --- a/lib/bld/bld-wrapper.properties +++ b/lib/bld/bld-wrapper.properties @@ -3,8 +3,8 @@ bld.downloadExtensionSources=true bld.downloadLocation= bld.javaOptions= bld.javacOptions= -bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.5 -bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.2.2 +bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.4 +bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.2.1 bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES bld.sourceDirectories= bld.version=2.2.1 diff --git a/src/main/java/rife/bld/extension/CompileKotlinOperation.java b/src/main/java/rife/bld/extension/CompileKotlinOperation.java index f54e68b..a45ef0c 100644 --- a/src/main/java/rife/bld/extension/CompileKotlinOperation.java +++ b/src/main/java/rife/bld/extension/CompileKotlinOperation.java @@ -122,21 +122,12 @@ public class CompileKotlinOperation extends AbstractOperation(); //NOPMD no concurrent access + var commonPaths = new HashMap(); //NOPMD no concurrent access if (isLinux()) { var userHome = System.getProperty("user.home"); if (userHome != null) { - commonPaths.put(userHome + "/.sdkman/candidates/kotlin/current/bin", "SDKMAN!"); - } - commonPaths.put("/snap/bin", "Kotlin (Snap)"); - commonPaths.put("/usr/bin", null); - commonPaths.put("/usr/share", null); - commonPaths.put("/usr/local/bin", null); - commonPaths.put("/usr/local/kotlin/bin", null); - commonPaths.put("/usr/share/kotlin/bin/", null); - commonPaths.put("/opt/kotlin/bin", null); - if (userHome != null) { + commonPaths.put(userHome + "/.sdkman/candidates/kotlin/current/bin", "SDKMAN"); commonPaths.put(userHome + "/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/plugins/Kotlin/kotlinc/bin", "IntelliJ IDEA Ultimate"); commonPaths.put(userHome + "/.local/share/JetBrains/Toolbox/apps/intellij-idea-community-edition/plugins/Kotlin/kotlinc/bin", @@ -144,14 +135,14 @@ public class CompileKotlinOperation extends AbstractOperation { + + }); // Try 'which' or 'where' commands (less reliable but sometimes works) try {