Skip to content

Commit 3676ea1

Browse files
pditommasoclaude
andcommitted
build(java): adopt two-profile model (Profile A --release 17 default, Profile B Java 25 for Micronaut) per adr#51
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent e4c56d1 commit 3676ea1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

app/build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ java {
99
toolchain {
1010
languageVersion = JavaLanguageVersion.of(25)
1111
}
12-
sourceCompatibility = 25
13-
targetCompatibility = 25
12+
}
13+
14+
// Profile A (per adr#51): build on the Java 25 toolchain but target Java 17.
15+
// Java sources use --release; Groovy ignores --release so it uses source/targetCompatibility.
16+
tasks.withType(JavaCompile).configureEach {
17+
options.release = 17
18+
}
19+
tasks.withType(GroovyCompile).configureEach {
20+
sourceCompatibility = '17'
21+
targetCompatibility = '17'
1422
}
1523

1624
repositories {

0 commit comments

Comments
 (0)