Overview

If you create a new project via https://start.spring.io that includes GraalVM support (for example, like this), AOT processing occurs by default without the user requesting it.

I believe this behavior might be new in Spring Boot 3.4, and in any case I am wondering if it is intentional that AOT processing occurs for a normal build or test run.

Examples

  • ./gradlew build -x test executes the processAot Gradle task
  • ./gradlew test executes the processTestAot Gradle task

Related Issues

  • https://github.com/spring-projects/spring-framework/issues/33940

Comment From: snicoll

I believe this behavior might be new in Spring Boot 3.4

No, it isn't. It's been like that since the very beginning, see https://docs.spring.io/spring-boot/gradle-plugin/reacting.html#reacting-to-other-plugins.nbt