Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary files for the classpath are never cleaned up #249

Closed
davidburstromspotify opened this issue May 14, 2020 · 3 comments
Closed

Temporary files for the classpath are never cleaned up #249

davidburstromspotify opened this issue May 14, 2020 · 3 comments

Comments

@davidburstromspotify
Copy link
Contributor

Version 4.2.0 and earlier.

After successfully executing SpotBugs a couple of times, the temporary directory is cluttered with files produced by

File file = File.createTempFile("spotbugs-gradle-plugin", ".txt");

After executing the task, they should be cleaned up.

@msiemczyk
Copy link

I've noticed the same thing and I made some changes that will contribute to this issue so hopefully this can be fixed.

@DPUkyle
Copy link
Contributor

DPUkyle commented Jun 2, 2020

Task#getTemporaryDir() is a better place for this file. API doc.

Just note that this cannot be relied upon by downstream tasks:

There are no guarantees that the contents of this directory will be kept beyond the execution of the task.

@github-actions
Copy link

🎉 This issue has been resolved in version 4.7.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants