Skip to content

Commit

Permalink
squash! Run StandaloneTests for Java 8 under Java 8
Browse files Browse the repository at this point in the history
To make tests executeOnJava8() and executeOnJava8SelectPackage() see the
class files, update test compile() to use option `--release 8`.  Because
compiling to release 8 is deprecated, add a linter option to disable the
warning to make compile() pass.
  • Loading branch information
rybak committed Aug 6, 2023
1 parent 2357c82 commit 795e01d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ void compile() throws Exception {
var result = Request.builder() //
.setTool(new Javac()) //
.setProject("standalone") //
.addArguments("-Xlint:-options")
.addArguments("--release", "8")
.addArguments("-proc:none") //
.addArguments("-d", workspace.resolve("bin")) //
.addArguments("--class-path", MavenRepo.jar("junit-platform-console-standalone")) //
Expand Down

0 comments on commit 795e01d

Please sign in to comment.