Browse Source

Merge branch '4.0.x'

Closes gh-49296
pull/49306/head
Stéphane Nicoll 3 weeks ago
parent
commit
7cc47e60ec
  1. 2
      build-plugin/spring-boot-maven-plugin/src/intTest/projects/aot-compiler-arguments/pom.xml
  2. 1
      build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractAotMojo.java

2
build-plugin/spring-boot-maven-plugin/src/intTest/projects/aot-compiler-arguments/pom.xml

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
<goal>process-aot</goal>
</goals>
<configuration>
<compilerArguments>-verbose --invalid-compiler-arg</compilerArguments>
<compilerArguments>-parameters --invalid-compiler-arg</compilerArguments>
</configuration>
</execution>
</executions>

1
build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractAotMojo.java

@ -170,6 +170,7 @@ public abstract class AbstractAotMojo extends AbstractDependencyFilterMojo { @@ -170,6 +170,7 @@ public abstract class AbstractAotMojo extends AbstractDependencyFilterMojo {
args.add(target);
}
}
args.add("-parameters");
args.addAll(new RunArguments(this.compilerArguments).getArgs());
Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromPaths(sourceFiles);
Errors errors = new Errors();

Loading…
Cancel
Save