Skip to content

Commit

Permalink
FIX java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/s…
Browse files Browse the repository at this point in the history
…cripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (#498)

* FIX java.lang.UnsupportedClassVersionError:
org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been
compiled by a more recent version of the Java Runtime

* allow buid.yml for push all branch

* Switch to temurin jdk (more actual)
  • Loading branch information
vharseko authored May 19, 2022
1 parent 949b8b6 commit 0317e02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -22,7 +21,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public final class StandardScriptEngineManager extends ScriptEngineManager {
*/
@Inject
public StandardScriptEngineManager() {

super(null);
// Configure Rhino JS and Groovy script engine factories with sandboxing
final RhinoScriptEngineFactory rhino = new RhinoScriptEngineFactory(new ObservedContextFactory(this));
rhino.setOptimisationLevel(RhinoScriptEngineFactory.INTERPRETED);
Expand Down
8 changes: 3 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@
<commons-logging-api.version>1.1</commons-logging-api.version>
<!-- <esapiport.version>2013-12-04</esapiport.version> -->
<geoip.version>2.0.0</geoip.version>
<groovy.version>2.5.8</groovy.version>
<groovy-sandbox.version>1.27</groovy-sandbox.version>
<jaxb.version>2.2.11</jaxb.version>
<jaxb1.version>2.2.5-1</jaxb1.version>
<jaxrpc-api.version>1.1</jaxrpc-api.version>
Expand Down Expand Up @@ -1160,19 +1158,19 @@
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-jsr223</artifactId>
<version>${groovy.version}</version>
<version>3.0.10</version>
</dependency>
<!-- Groovy JSON parsing support -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-json</artifactId>
<version>${groovy.version}</version>
<version>3.0.10</version>
</dependency>
<dependency>
<!-- MIT licensed: http://groovy-sandbox.kohsuke.org/license.html -->
<groupId>org.kohsuke</groupId>
<artifactId>groovy-sandbox</artifactId>
<version>${groovy-sandbox.version}</version>
<version>1.27</version>
<!-- Groovy-sandbox depends on Groovy 1.8.5, so ignore that in favour of our version. -->
<exclusions>
<exclusion>
Expand Down

0 comments on commit 0317e02

Please sign in to comment.