Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Gradle plugin adds generated sources JAR to end of the test classpath #1272

Closed
sbrannen opened this issue Nov 17, 2021 · 0 comments
Closed
Assignees
Labels
type: bug A general bug
Milestone

Comments

@sbrannen
Copy link
Contributor

As discussed in #1265 (comment), the AOT testing support in the Gradle plugin currently adds the *-aot-test.jar (containing generated sources and resources) to the end of the original test classpath.

This results in generated code not being able to override existing code.

For example, the generated SpringFactoriesLoader appears on the classpath after the standard SpringFactoriesLoader present in the spring-core JAR, which means that the standard SpringFactoriesLoader support is used instead of the AOT generated one that uses StaticSpringFactories.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A general bug
Development

No branches or pull requests

1 participant