mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '3.1.x'
Closes gh-36973
This commit is contained in:
commit
b0ac3a7835
@ -53,6 +53,7 @@ import org.springframework.boot.maven.CommandLineBuilder.ClasspathBuilder;
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Scott Frederick
|
||||
* @author Omar YAYA
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public abstract class AbstractAotMojo extends AbstractDependencyFilterMojo {
|
||||
@ -152,10 +153,16 @@ public abstract class AbstractAotMojo extends AbstractDependencyFilterMojo {
|
||||
options.add(releaseVersion);
|
||||
}
|
||||
else {
|
||||
options.add("--source");
|
||||
options.add(compilerConfiguration.getSourceMajorVersion());
|
||||
options.add("--target");
|
||||
options.add(compilerConfiguration.getTargetMajorVersion());
|
||||
String source = compilerConfiguration.getSourceMajorVersion();
|
||||
if (source != null) {
|
||||
options.add("--source");
|
||||
options.add(source);
|
||||
}
|
||||
String target = compilerConfiguration.getTargetMajorVersion();
|
||||
if (target != null) {
|
||||
options.add("--target");
|
||||
options.add(target);
|
||||
}
|
||||
}
|
||||
options.addAll(new RunArguments(this.compilerArguments).getArgs());
|
||||
Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromPaths(sourceFiles);
|
||||
|
Loading…
Reference in New Issue
Block a user