Skip to content

Commit

Permalink
Use --release instead of --source/target combo
Browse files Browse the repository at this point in the history
This fixes warnings during build like:
```
[WARNING] location of system modules is not set in conjunction with
-source 17
  not setting the location of system modules may lead to class files
that cannot run on JDK 17
    --release 17 is recommended instead of -source 17 -target 17 because
it sets the location of system modules automatically
```
and also ensures usage of newer API doesn't slip in.
  • Loading branch information
akurtakov authored and github-actions[bot] committed Dec 6, 2024
1 parent 40d3821 commit 6fce47c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=1.8

0 comments on commit 6fce47c

Please sign in to comment.