Dariusz Kuc
02/11/2020, 12:23 AMstart and stop goals https://docs.spring.io/spring-boot/docs/current/maven-plugin/usage.html).
Based on https://github.com/spring-projects/spring-boot/issues/3982 and https://github.com/gradle/gradle/issues/1367 looks like there is no out of the box solution for that. Guess this could be done through the custom tasks that rely on Spring Actutator (as suggested here -> https://stackoverflow.com/questions/31407323/running-integration-tests-for-a-spring-boot-rest-service-using-gradle). Any suggestions?Fleshgrinder
02/11/2020, 6:00 AM@SpringBootTest not work? Otherwise I would create a normal task with an exec call in doLast and use Bash to start it in the background, recording the PID and sending a SIGTERM to it once tests completed. Normal Unix stuff always gets the job done.thanksforallthefish
02/11/2020, 7:13 AM@SpringBootTest, usually it works well enoughFleshgrinder
02/11/2020, 7:18 AMdocker-compose up -d and docker-compose kill and you're golden.Fleshgrinder
02/11/2020, 7:18 AMDariusz Kuc
02/11/2020, 6:37 PM@SpringBootTest won't work for me as I need to start up app from project_A and then run some task (custom plugin) from project_BDariusz Kuc
02/11/2020, 6:38 PMkrotki
02/11/2020, 7:46 PMDariusz Kuc
02/11/2020, 8:19 PMDariusz Kuc
02/11/2020, 8:21 PMFleshgrinder
02/12/2020, 8:25 AM