GitHub user oehme opened a pull request: https://github.com/apache/groovy/pull/735
Fix file descriptor leak in AST transform discovery The JVM keeps a cache of URL connections, which keeps the underlying files open for the lifetime of the VM unless the `setUseCaches(false)` method is used. This change makes it possible to reuse the Groovy compiler, e.g. embedded in the Gradle daemon without preventing files from being deleted on Windows. You can merge this pull request into a Git repository by running: $ git pull https://github.com/oehme/groovy master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/735.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #735 ---- commit a6d34536243a42c0599270ad420f7d75438be05b Author: Stefan Oehme <st.oehme@...> Date: 2018-05-29T16:53:37Z Fix file descriptor leak in AST transform discovery The JVM keeps a cache of URL connections, which keeps the underlying files open for the lifetime of the VM unless the `setUseCaches(false)` method is used. This change makes it possible to reuse the Groovy compiler, e.g. embedded in the Gradle daemon without preventing files from being deleted on Windows. ---- ---