Could not find a valid Docker environment when using Gradle Shared Build Service (ClassNotFoundException
when loading strategies)
#9050
Labels
ClassNotFoundException
when loading strategies)
#9050
Discussed in #9034
Originally posted by debapgithub July 30, 2024
Hi,
I am new to testcontainers and setting up for a gradle service where I wanted to achieve the following in sequence.
When gradle build command will run :
./gradlew clean build
I have tried starting MySql testcontainer as a gradle task and I was able to execute the following tasks properly except one issue due to which I have decided to switch to another approach where I can start the MySql testcontainer as a gradle Shared service so that it will automaticllay manage the testcontainer lifecycle.
Here is the code which will start the testcontainer as a gradle shared service and it worked fine as well. But next day when I tried running the gradle command, I started getting the below error.
Error
Gradle Code
Not sure whats going wrong and how it worked first time when I did this code.
Thanks in advance!!
-Deba
The text was updated successfully, but these errors were encountered: