spring-native
spring-native copied to clipboard
Gradle Continuous Mode Infinite Loop
org.springframework.experimental.aot = 0.11.1
If I run in continuous mode:
./gradlew -t test
It runs and re-runs the tests infinitely due to:
new directory: /home/jw/projects/kotlin-bars/server/build/generated/sources/aotTest
new file: /home/jw/projects/kotlin-bars/server/build/generated/sources/aotTest/org/springframework/aot/TestContextBootstrapInitializer.java
new file: /home/jw/projects/kotlin-bars/server/build/generated/sources/aotTest/org/springframework/aot/TestContextBootstrapInitializer0.java
I tried on commandlinerunner-gradle sample and can't reproduce, could you please share a reproducer?
Might be something unique in my setup.
Use this repo: https://github.com/jamesward/kotlin-bars
Run:
./gradlew -t :server:test
I can reproduce with your sample, not sure yet what triggers it. Could be Kotlin specific or multi-module specific for example.
@bclozel Could you please give a try to James sample to see if you see something obvious that we should fix in the Gradle plugin or document?
Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details.
As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version. If you still experience the issue reported here, please open an issue directly on the related Spring project (Spring Framework, Data, Security, Boot, Cloud, etc.) with a reproducer.
Thanks for your contribution on the experimental Spring Native project, we hope you will enjoy the official native support introduced by Spring Boot 3.