Skip to content

Commit f05fb28

Browse files
committed
chore: improve build compatibility with JDK <21 and remove deprecation warnings
1 parent 5cb66ee commit f05fb28

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test-app/runtime/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,11 @@ allprojects {
152152
afterEvaluate {
153153
tasks.withType(JavaCompile).configureEach {
154154
// remove after "-Xlint:-classfile" https://issuetracker.google.com/issues/359561906
155-
// todo remove "-Xlint:-this-escape" after updating runtime-binding-generator
156-
options.compilerArgs << "-Xlint:all" << "-Werror" << "-Xlint:-classfile" << "-Xlint:-this-escape"
155+
options.compilerArgs << "-Xlint:all" << "-Werror" << "-Xlint:-classfile"
156+
if (javaVersion.current() >= JavaVersion.VERSION_21) {
157+
// todo remove "-Xlint:-this-escape" after updating runtime-binding-generator
158+
options.compilerArgs << "-Xlint:-this-escape"
159+
}
157160
}
158161
}
159162
}

0 commit comments

Comments
 (0)