Skip to content

Commit

Permalink
Explicitly compile for Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi committed Jun 11, 2021
1 parent d3e4755 commit fdef402
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions make/nashorn/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@
destdir="${nashorn.module.classes.dir}"
debug="${javac.debug}"
encoding="${javac.encoding}"
includeantruntime="false" fork="true">
includeantruntime="false" fork="true"
release="${nashorn.target.java.version}">
<compilerarg line="--module-path ${deps.dir}"/>
<compilerarg value="-Xlint:all"/>
<compilerarg value="-XDignore.symbol.file"/>
Expand Down Expand Up @@ -216,7 +217,8 @@
destdir="${nashorn.shell.module.classes.dir}"
debug="${javac.debug}"
encoding="${javac.encoding}"
includeantruntime="false" fork="true">
includeantruntime="false" fork="true"
source="${nashorn.target.java.version}" target="${nashorn.target.java.version}">
<compilerarg value="-Xlint:all"/>
<compilerarg value="-XDignore.symbol.file"/>
<compilerarg value="-Xdiags:verbose"/>
Expand Down
3 changes: 3 additions & 0 deletions make/nashorn/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ javadoc.option=\
-tag "implNote:a:Implementation Note:" \
-tag "moduleGraph:a:Module Graph"

# Version of Java we're targeting
nashorn.target.java.version=11

# nashorn version information
nashorn.version=15.2
nashorn.fullversion=15.2
Expand Down

0 comments on commit fdef402

Please sign in to comment.