Skip to content

Commit 3670bce

Browse files
authored
Support Spring Boot 3 native image build (#1877)
1 parent 198c780 commit 3670bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/java.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ subprojects {
1414

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

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

0 commit comments

Comments
 (0)