Skip to content

Commit

Permalink
updated graalvm js
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlukas committed Oct 16, 2024
1 parent 5de3aee commit 69f0b1a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 6 additions & 1 deletion connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@
<type>pom</type>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>polyglot</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>js</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<version.groovy>4.0.23</version.groovy>
<version.kotlin>1.9.25</version.kotlin>
<version.graalvm>23.0.5</version.graalvm>
<version.graalvm>24.1.1</version.graalvm>

<plugin.version.function-maven-plugin>0.11.0</plugin.version.function-maven-plugin>
<plugin.version.maven-enforcer-plugin>3.5.0</plugin.version.maven-enforcer-plugin>
Expand Down Expand Up @@ -119,9 +119,15 @@
<type>pom</type>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>polyglot</artifactId>
<version>${version.graalvm}</version>
</dependency>
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>js</artifactId>
<version>${version.graalvm}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
Expand Down

0 comments on commit 69f0b1a

Please sign in to comment.