diff --git a/README.markdown b/README.markdown index 6abe590..a62474e 100644 --- a/README.markdown +++ b/README.markdown @@ -16,7 +16,26 @@ Groovy shell server uses `groovysh` API inside, so all features of `groovysh` (a Installation ------------ -Just include following dependency in your `pom.xml`: +### Java 21+ + +Current versions of the library require JDK 21 or higher. Include the following dependency in your `pom.xml`: + + + + jitpack.io + https://jitpack.io + + + + + com.github.farpost + groovy-shell-server + 2.2.6-jdk21 + + +### Java 8 / Legacy + +If you are running on an older JVM (Java 8 - 17), please use the `2.2.x` releases (e.g., `2.2.1`). These versions are stable but do not include features requiring newer JDKs. me.bazhenov.groovy-shell diff --git a/groovy-shell-server/pom.xml b/groovy-shell-server/pom.xml index 73e9340..c85817b 100644 --- a/groovy-shell-server/pom.xml +++ b/groovy-shell-server/pom.xml @@ -7,7 +7,7 @@ me.bazhenov.groovy-shell groovy-shell-parent - 2.2.4-SNAPSHOT + 2.2.6-jdk21 diff --git a/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java b/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java index 3716bf7..00da3a7 100644 --- a/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java +++ b/groovy-shell-server/src/main/java/me/bazhenov/groovysh/GroovyShellCommand.java @@ -70,7 +70,7 @@ public void start(ChannelSession session, Environment env) throws IOException { IO io = new IO(in, out, err); io.setVerbosity(DEBUG); - Groovysh shell = new Groovysh(createBinding(bindings, out, err), io); + Groovysh shell = new Groovysh(this.getClass().getClassLoader(), createBinding(bindings, out, err), io); shell.setErrorHook(new Closure(this) { @Override public Object call(Object... args) { diff --git a/pom.xml b/pom.xml index eb731a8..d5177f5 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,11 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 me.bazhenov.groovy-shell groovy-shell-parent pom - 2.2.4-SNAPSHOT + 2.2.6-jdk21 Groovy Shell https://github.com/bazhenov/groovy-shell-server @@ -19,6 +19,7 @@ UTF-8 UTF-8 + 21 @@ -35,17 +36,6 @@ - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - The Apache Software License, Version 2.0 @@ -64,17 +54,16 @@ org.apache.maven.plugins maven-compiler-plugin - 3.1 + 3.13.0 + 21 UTF-8 - 1.8 - 1.8 org.apache.maven.plugins maven-source-plugin - 2.2.1 + 3.3.1 install @@ -87,64 +76,19 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.9.1 + 3.11.2 install jar + + none + - - - - nexus-staging - - true - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - ossrh - https://oss.sonatype.org/ - true - - - - - - - gpg - - true - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - install - - sign - - - - - - - - - - + \ No newline at end of file