File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
buildSrc/src/main/java/org/springframework/boot/build Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .boot .build ;
18
18
19
+ import java .util .List ;
19
20
import java .util .Map ;
20
21
import java .util .TreeMap ;
21
22
@@ -104,7 +105,13 @@ private void applyJavaConventions(Project project) {
104
105
project .getPlugins ().withType (JavaPlugin .class , (java ) -> {
105
106
configureSpringJavaFormat (project );
106
107
project .setProperty ("sourceCompatibility" , "1.8" );
107
- project .getTasks ().withType (JavaCompile .class , (compile ) -> compile .getOptions ().setEncoding ("UTF-8" ));
108
+ project .getTasks ().withType (JavaCompile .class , (compile ) -> {
109
+ compile .getOptions ().setEncoding ("UTF-8" );
110
+ List <String > args = compile .getOptions ().getCompilerArgs ();
111
+ if (!args .contains ("-parameters" )) {
112
+ args .add ("-parameters" );
113
+ }
114
+ });
108
115
project .getTasks ().withType (Javadoc .class ,
109
116
(javadoc ) -> javadoc .getOptions ().source ("1.8" ).encoding ("UTF-8" ));
110
117
project .getTasks ().withType (Test .class , (test ) -> {
You can’t perform that action at this time.
0 commit comments