I am using the SonarQube Gradle plugin version 3.0 with Gradle 6.7.1 for analysis of my Java code. This works fine and the results are uploaded to Sonar. When I do gradlew clean test sonarqube initially I have no problem. But when I run it subsequently I get the following:
gradlew clean test sonarqube
java.io.IOException: Unable to delete directory 'C:xxxuild' Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory. - C:xxxuildsonarfindbugsfindsecbugs-plugin.jar - C:xxxuildsonarfindbugs - C:xxxuildsonar
This keep on failing until I kill the Gradle daemon after which I can successfully run sonarqube again. Is there a way to get around this?
1.4m articles
1.4m replys
5 comments
57.0k users