Skip to content

Commit

Permalink
Support Spring Boot 3 native image build (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxnlai authored Oct 3, 2023
1 parent 198c780 commit 3670bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle/java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ subprojects {

compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:none' << '-Xlint:deprecation' << '-Werror'
options.compilerArgs << '-Xlint:none' << '-Xlint:deprecation' << '-Werror' << '-parameters'
if (JavaVersion.current().isJava9Compatible() && !project.hasProperty("edgeDepsTest")) {
// https://stackoverflow.com/a/43103115/525203
options.compilerArgs.addAll(['--release', '8'])
Expand All @@ -23,7 +23,7 @@ subprojects {

compileTestJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:none' << '-Xlint:deprecation' << '-Werror'
options.compilerArgs << '-Xlint:none' << '-Xlint:deprecation' << '-Werror' << '-parameters'
if (JavaVersion.current().isJava9Compatible() && !project.hasProperty("edgeDepsTest")) {
// https://stackoverflow.com/a/43103115/525203
options.compilerArgs.addAll(['--release', '8'])
Expand Down

0 comments on commit 3670bce

Please sign in to comment.