mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Rename 'aot-generate' goal to process-aot'
See gh-31918
This commit is contained in:
parent
973e23dc5e
commit
2f6354f633
@ -233,9 +233,9 @@ publishing.publications.withType(MavenPublication) {
|
||||
delegate.artifactId('spring-boot-maven-plugin')
|
||||
executions {
|
||||
execution {
|
||||
delegate.id('aot-generate')
|
||||
delegate.id('process-aot')
|
||||
goals {
|
||||
delegate.goal('aot-generate')
|
||||
delegate.goal('process-aot')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
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]
|
||||
----
|
||||
@ -16,7 +16,7 @@ include::../maven/aot/pom.xml[tags=aot]
|
||||
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.
|
||||
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]
|
||||
|
@ -10,9 +10,9 @@
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>aot-generate</id>
|
||||
<id>process-aot</id>
|
||||
<goals>
|
||||
<goal>aot-generate</goal>
|
||||
<goal>process-aot</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>aot-generate</goal>
|
||||
<goal>process-aot</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>aot-generate</goal>
|
||||
<goal>process-aot</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>aot-generate</goal>
|
||||
<goal>process-aot</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
@ -57,10 +57,10 @@ import org.springframework.util.ObjectUtils;
|
||||
* @author Andy Wilkinson
|
||||
* @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,
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user