Describe the bug
After the generation of a jmh jar, the resources associated to the jmhJar task are not released :
the generated jar is locked,
a java process is not released,
the clean tasks fail.
To Reproduce
Test Env:
MINGW64 / GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
Gradle 7.0
JMH_PLUGIN_VERSION=0.5.0
./gradlew :XXX:jmhJar
./gradlew clean
What went wrong
Execution failed for task ':XXX:clean'.
java.io.IOException: Unable to delete directory 'xxx\build'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
Describe the bug After the generation of a jmh jar, the resources associated to the
jmhJar
task are not released :clean
tasks fail.To Reproduce Test Env:
What went wrong Execution failed for task ':XXX:clean'.
Could be reproduced here https://github.com/arrow-kt/arrow-incubator ./gradlew :arrow-benchmarks-free:jmhJar