Skip to content

Commit 1f9f670

Browse files
committed
Rename Maven goal from aot-generate to aot
See spring-projectsgh-31918
1 parent 41e8697 commit 1f9f670

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

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('aot')
237237
goals {
238-
delegate.goal('aot-generate')
238+
delegate.goal('aot')
239239
}
240240
}
241241
}

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 `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 `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/aot.adoc[leveloffset=+1]

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>aot</id>
1414
<goals>
15-
<goal>aot-generate</goal>
15+
<goal>aot</goal>
1616
</goals>
1717
</execution>
1818
</executions>

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>aot</goal>
2323
</goals>
2424
</execution>
2525
</executions>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AotGenerateMojo.java

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

0 commit comments

Comments
 (0)