Commit 08ed54b
committed
Explicitly compile production code with java 8
This configures the main toolchain of the project to java 17, but it overrides the compiler for the compileJava task to use java 8, so compatibility with older java versions is guaranteed.
Gradle will now except dependencies that require newer java versions even if only test code is using newer versions, but this shouldn't be a problem since compilation should fail if incompatible classes are used in production code.1 parent c9c01a8 commit 08ed54b
1 file changed
Lines changed: 7 additions & 7 deletions
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 13 | + | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments