mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Consistently enable parameters generation with AOT
This commit updates the Maven Plugin to retain parameters information in AOT-generated code. This aligns with the Gradle Plugin and allows to consistently use parameter names resolution in generated code. Closes gh-49268
This commit is contained in:
+1
-1
@@ -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
@@ -168,6 +168,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();
|
||||
|
||||
Reference in New Issue
Block a user