Skip to content

Update Gradle plugin to skip processAot when there is no main source and to skip processTestAot when there is no test source #32424

Closed
@sbrannen

Description

@sbrannen

@sdeleuze pointed out that https://github.com/mhalbritter/spring-aot-jarsigner-reproducer fails with the following.

> Task :app:processTestAot FAILED
Error: Could not find or load main class org.springframework.test.context.aot.TestAotProcessor
Caused by: java.lang.ClassNotFoundException: org.springframework.test.context.aot.TestAotProcessor

The app project does not have a dependency on spring-test (or spring-boot-starter-test). So that explains why org.springframework.test.context.aot.TestAotProcessor cannot be found.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions