Rename 'aot-generate' goal to process-aot'

See gh-31918
This commit is contained in:
Phillip Webb 2022-08-25 15:02:28 -07:00
parent 973e23dc5e
commit 2f6354f633
7 changed files with 12 additions and 12 deletions

View File

@ -233,9 +233,9 @@ publishing.publications.withType(MavenPublication) {
delegate.artifactId('spring-boot-maven-plugin') delegate.artifactId('spring-boot-maven-plugin')
executions { executions {
execution { execution {
delegate.id('aot-generate') delegate.id('process-aot')
goals { goals {
delegate.goal('aot-generate') delegate.goal('process-aot')
} }
} }
} }

View File

@ -6,7 +6,7 @@ Based on your `@SpringBootApplication`-annotated main class, the AOT engine gene
Additional post-processing of the factory is possible using callbacks. Additional post-processing of the factory is possible using callbacks.
For instance, these are used to generate the necessary reflection configuration that GraalVM needs to initialize the context in a native image. For instance, these are used to generate the necessary reflection configuration that GraalVM needs to initialize the context in a native image.
To configure your application to use this feature, add an execution for the `aot-generate` goal, as shown in the following example: To configure your application to use this feature, add an execution for the `process-aot` goal, as shown in the following example:
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4] [source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
---- ----
@ -16,7 +16,7 @@ include::../maven/aot/pom.xml[tags=aot]
As the `BeanFactory` is fully prepared at build-time, conditions are also evaluated. As the `BeanFactory` is fully prepared at build-time, conditions are also evaluated.
This has an important difference compared to what a regular Spring Boot application does at runtime. This has an important difference compared to what a regular Spring Boot application does at runtime.
For instance, if you want to opt-in or opt-out for certain features, you need to configure the environment used at build time to do so. For instance, if you want to opt-in or opt-out for certain features, you need to configure the environment used at build time to do so.
The `aot-generate` goal shares a number of properties with the <<run,run goal>> for that reason. The `process-aot` goal shares a number of properties with the <<run,run goal>> for that reason.
include::goals/aot-generate.adoc[leveloffset=+1] include::goals/process-aot.adoc[leveloffset=+1]

View File

@ -10,9 +10,9 @@
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>aot-generate</id> <id>process-aot</id>
<goals> <goals>
<goal>aot-generate</goal> <goal>process-aot</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>

View File

@ -19,7 +19,7 @@
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>aot-generate</goal> <goal>process-aot</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>

View File

@ -19,7 +19,7 @@
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>aot-generate</goal> <goal>process-aot</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>

View File

@ -19,7 +19,7 @@
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>aot-generate</goal> <goal>process-aot</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>

View File

@ -57,10 +57,10 @@ import org.springframework.util.ObjectUtils;
* @author Andy Wilkinson * @author Andy Wilkinson
* @since 3.0.0 * @since 3.0.0
*/ */
@Mojo(name = "aot-generate", defaultPhase = LifecyclePhase.PREPARE_PACKAGE, threadSafe = true, @Mojo(name = "process-aot", defaultPhase = LifecyclePhase.PREPARE_PACKAGE, threadSafe = true,
requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME,
requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME) requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME)
public class AotGenerateMojo extends AbstractDependencyFilterMojo { public class ProcessAotMojo extends AbstractDependencyFilterMojo {
private static final String AOT_PROCESSOR_CLASS_NAME = "org.springframework.boot.AotProcessor"; private static final String AOT_PROCESSOR_CLASS_NAME = "org.springframework.boot.AotProcessor";