Commit e8fe89f
committed
feat: bump java default targets to 21
The engine defaulted to Java 11, so any project that did not set the
compatibility preferences emitted class-file major 55 while building
against AGP 9.2.1 and Kotlin 2.2.20. MABS 13 ships JDK 21 and no AGP
below 9, so 11 is no longer a default worth carrying.
Projects that do not set AndroidJavaSourceCompatibility or
AndroidJavaTargetCompatibility now compile at Java 21 and need a JDK 21
or newer build host. MABS 13 agents and CI already provide one, so the
floor is documented rather than newly imposed.
KOTLIN_JVM_TARGET stays null deliberately. Nothing has consumed it since
the KGP wiring was removed in 8d3bd1e, and AGP 9's built-in Kotlin
derives its jvmTarget from the module's Java target compatibility, so
this raise carries Kotlin with it. Pinning it to a literal 21 would
reintroduce a value that can drift from JAVA_TARGET_COMPATIBILITY once
either is overridden, for no gain.
References https://outsystemsrd.atlassian.net/browse/RDMR-14281 parent e325821 commit e8fe89f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
0 commit comments