spring-native icon indicating copy to clipboard operation
spring-native copied to clipboard

Gradle Continuous Mode Infinite Loop

Open jamesward opened this issue 3 years ago • 4 comments
trafficstars

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

jamesward avatar Dec 22 '21 21:12 jamesward

I tried on commandlinerunner-gradle sample and can't reproduce, could you please share a reproducer?

sdeleuze avatar Jan 03 '22 10:01 sdeleuze

Might be something unique in my setup.

Use this repo: https://github.com/jamesward/kotlin-bars

Run:

./gradlew -t :server:test

jamesward avatar Jan 03 '22 16:01 jamesward

I can reproduce with your sample, not sure yet what triggers it. Could be Kotlin specific or multi-module specific for example.

sdeleuze avatar Jan 04 '22 15:01 sdeleuze

@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?

sdeleuze avatar Jan 31 '22 16:01 sdeleuze

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.

sdeleuze avatar Jan 02 '23 12:01 sdeleuze