Commit bb3fe0f
committed
Default to minimum required Java version for Groovy 5 and 6
Groovy 5 requires Java 11+ and Groovy 6 requires Java 17+. Instead of
hardcoding -DjavaVersion in the allVariants scripts (which would override
an explicit -DjavaVersion=21 passed by the user), build.gradle now silently
defaults to the minimum required Java version when none was specified.
An explicit but incompatible javaVersion still fails loudly.
allVariants and allVariants.bat use a simple loop over all variants,
so e.g. `allVariants -DjavaVersion=21` works correctly for all.1 parent d046002 commit bb3fe0f
3 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
0 commit comments