Skip to content

Commit 2f6354f

Browse files
committed
Rename 'aot-generate' goal to process-aot'
See gh-31918
1 parent 973e23d commit 2f6354f

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

Diff for: spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ publishing.publications.withType(MavenPublication) {
233233
delegate.artifactId('spring-boot-maven-plugin')
234234
executions {
235235
execution {
236-
delegate.id('aot-generate')
236+
delegate.id('process-aot')
237237
goals {
238-
delegate.goal('aot-generate')
238+
delegate.goal('process-aot')
239239
}
240240
}
241241
}

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Based on your `@SpringBootApplication`-annotated main class, the AOT engine gene
66
Additional post-processing of the factory is possible using callbacks.
77
For instance, these are used to generate the necessary reflection configuration that GraalVM needs to initialize the context in a native image.
88

9-
To configure your application to use this feature, add an execution for the `aot-generate` goal, as shown in the following example:
9+
To configure your application to use this feature, add an execution for the `process-aot` goal, as shown in the following example:
1010

1111
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
1212
----
@@ -16,7 +16,7 @@ include::../maven/aot/pom.xml[tags=aot]
1616
As the `BeanFactory` is fully prepared at build-time, conditions are also evaluated.
1717
This has an important difference compared to what a regular Spring Boot application does at runtime.
1818
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.
19-
The `aot-generate` goal shares a number of properties with the <<run,run goal>> for that reason.
19+
The `process-aot` goal shares a number of properties with the <<run,run goal>> for that reason.
2020

2121

22-
include::goals/aot-generate.adoc[leveloffset=+1]
22+
include::goals/process-aot.adoc[leveloffset=+1]

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/aot/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<artifactId>spring-boot-maven-plugin</artifactId>
1111
<executions>
1212
<execution>
13-
<id>aot-generate</id>
13+
<id>process-aot</id>
1414
<goals>
15-
<goal>aot-generate</goal>
15+
<goal>process-aot</goal>
1616
</goals>
1717
</execution>
1818
</executions>

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot-class-proxy/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<executions>
2020
<execution>
2121
<goals>
22-
<goal>aot-generate</goal>
22+
<goal>process-aot</goal>
2323
</goals>
2424
</execution>
2525
</executions>

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot-jdk-proxy/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<executions>
2020
<execution>
2121
<goals>
22-
<goal>aot-generate</goal>
22+
<goal>process-aot</goal>
2323
</goals>
2424
</execution>
2525
</executions>

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<executions>
2020
<execution>
2121
<goals>
22-
<goal>aot-generate</goal>
22+
<goal>process-aot</goal>
2323
</goals>
2424
</execution>
2525
</executions>

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AotGenerateMojo.java renamed to spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ProcessAotMojo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
* @author Andy Wilkinson
5858
* @since 3.0.0
5959
*/
60-
@Mojo(name = "aot-generate", defaultPhase = LifecyclePhase.PREPARE_PACKAGE, threadSafe = true,
60+
@Mojo(name = "process-aot", defaultPhase = LifecyclePhase.PREPARE_PACKAGE, threadSafe = true,
6161
requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME,
6262
requiresDependencyCollection = ResolutionScope.COMPILE_PLUS_RUNTIME)
63-
public class AotGenerateMojo extends AbstractDependencyFilterMojo {
63+
public class ProcessAotMojo extends AbstractDependencyFilterMojo {
6464

6565
private static final String AOT_PROCESSOR_CLASS_NAME = "org.springframework.boot.AotProcessor";
6666

0 commit comments

Comments
 (0)