Browse Source

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

See gh-31918
pull/32186/head
Phillip Webb 3 years ago
parent
commit
2f6354f633
  1. 4
      spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle
  2. 6
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc
  3. 4
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/aot/pom.xml
  4. 2
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot-class-proxy/pom.xml
  5. 2
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot-jdk-proxy/pom.xml
  6. 2
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot/pom.xml
  7. 4
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ProcessAotMojo.java

4
spring-boot-project/spring-boot-starters/spring-boot-starter-parent/build.gradle

@ -233,9 +233,9 @@ publishing.publications.withType(MavenPublication) { @@ -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
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/aot.adoc

@ -6,7 +6,7 @@ Based on your `@SpringBootApplication`-annotated main class, the AOT engine gene @@ -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] @@ -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]

4
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/aot/pom.xml

@ -10,9 +10,9 @@ @@ -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>

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

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

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

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

2
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/projects/aot/pom.xml

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

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

@ -57,10 +57,10 @@ import org.springframework.util.ObjectUtils; @@ -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…
Cancel
Save