diff --git a/connector/pom.xml b/connector/pom.xml index 6605c0a..d0004ca 100644 --- a/connector/pom.xml +++ b/connector/pom.xml @@ -40,8 +40,13 @@ pom - org.graalvm.js + org.graalvm.polyglot + polyglot + + + org.graalvm.polyglot js + pom org.graalvm.js diff --git a/connector/src/main/java/io/camunda/community/connector/script/ScriptResourceProvider.java b/connector/src/main/java/io/camunda/community/connector/script/ScriptResourceProvider.java index 61db700..b2f97f4 100644 --- a/connector/src/main/java/io/camunda/community/connector/script/ScriptResourceProvider.java +++ b/connector/src/main/java/io/camunda/community/connector/script/ScriptResourceProvider.java @@ -2,6 +2,7 @@ import java.io.File; import java.io.InputStream; +import java.net.URI; import java.net.URL; import java.nio.file.Files; import java.util.function.Function; @@ -60,7 +61,7 @@ private String loadFromFile(String scriptResource) { private String loadFromUrl(String scriptResource) { try { - URL scriptUrl = new URL(scriptResource); + URL scriptUrl = URI.create(scriptResource).toURL(); try (InputStream in = scriptUrl.openStream()) { return new String(in.readAllBytes()); } diff --git a/pom.xml b/pom.xml index 36b9791..4694c8c 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ 4.0.23 1.9.25 - 23.0.5 + 24.1.1 0.11.0 3.5.0 @@ -119,9 +119,15 @@ pom - org.graalvm.js + org.graalvm.polyglot + polyglot + ${version.graalvm} + + + org.graalvm.polyglot js ${version.graalvm} + pom org.graalvm.js