-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Description
Describe the bug
I have added org.gradle.parallel=true to gradle.properties. The cpu has 64 cores.
Often, executing something like gradle assembleAll -x ip -x zipJavadocs fails with an error like:
The :Project:jar task failed.
Unable to delete file 'C:\src\ghidra\Ghidra\Framework\Project\build\libs\Project.jar'
where the falting .jar is nondeterministic (but always within Ghidra\Framework\Project\build\libs).
After looking at timeline of gradle build scan, it seemed like the jar target was always overlapping with a buildHelpFiles task.
After adding -x buildHelp to the gradle command line, the issue goes away.
It seems there is some unsafe behavior going on with the buildHelp task or dependencies.
To Reproduce
On machine with plenty of cores, run gradle --parallel assembleAll -x ip -x zipJavadocs.
Environment (please complete the following information):
- OS: Microsoft Windows [Version 10.0.22631.3737]
- Java Version: jdk-21.0.3+9
- Ghidra Version: 76977bd
- Ghidra Origin: locally built
-Gradle version: 8.8