melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
666 stars 88 forks source link

jmhJar does not seem to release its Java resources #163

Open PhBastiani opened 4 years ago

PhBastiani commented 4 years ago

Describe the bug After the generation of a jmh jar, the resources associated to the jmhJar task are not released :

To Reproduce Test Env:

  1. ./gradlew :XXX:jmhJar
  2. ./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.

  • xxx\build\libs\XXX-SNAPSHOT.jar
  • xxx\build\libs

Could be reproduced here https://github.com/arrow-kt/arrow-incubator ./gradlew :arrow-benchmarks-free:jmhJar

jnellis commented 4 years ago

This plugin doesn't work on Windows machines without using --no-daemon. You can read more about the issue here.

https://github.com/jnellis/jmh-gradle

PhBastiani commented 4 years ago

Yes, it seems to be a duplicate...

Note: it can be reproduced under Windows Seven Enterprise