hamvocke / spring-testing

A Spring Boot application with lots of test examples
https://www.martinfowler.com/articles/practical-test-pyramid.html
1.09k stars 430 forks source link

Gets stuck at > Building 80% > :bootRun #3

Closed eyatzeck closed 6 years ago

eyatzeck commented 6 years ago

I think this is a known issue with Gradle, but a successful build for me always ends up at 80%. It might be reassuring if it got all the way done!

hamvocke commented 6 years ago

I agree that it's confusing but it's perfectly normal. gradle bootRun compiles your sources and starts the application. The server then keeps running until you finish it. Closing down the server is what makes the Gradle task actually finish. Until then it's just waiting in an infinite loop (the one for the server) until it's being terminated. Being stuck at a certain percentage is exactly how it's meant to be - even though it looks like something's wrong. That also means, there's nothing I could do about this (at least not without using a different build system). Good thing though, that you reported this, as this might serve as a good documentation for others.

charafioussama commented 4 years ago

@hamvocke Please can you elaborate a bit why exactly stuck in 75% and not 100% ?

hamvocke commented 3 years ago

This answer on Stack Overflow could shed some light on this.