Commit 10d2cf3
committed
maven: switch to maven.compiler.release
Build with --release instead of -source and -target, to ensure we use the
correct language rules and system classes. Fixes build warning on
Java > 22:
Warning: location of system modules is not set in conjunction with -source 22
not setting the location of system modules may lead to class files that cannot run on JDK 22
--release 22 is recommended instead of -source 22 -target 22 because it sets the location of system modules automatically
Signed-off-by: Benjamin Gilbert <[email protected]>1 parent 82cb182 commit 10d2cf3
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
0 commit comments