Skip to content

Clean up junk from gradle's user home (~/.gradle/.tmp). #14385 #14387

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

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

dweiss
Copy link
Contributor

@dweiss dweiss commented Mar 21, 2025

No description provided.

@rmuir
Copy link
Member

rmuir commented Mar 21, 2025

./gradlew -XX:UseDweissTempFileGC

@dweiss dweiss requested a review from rmuir March 21, 2025 17:16
@dweiss
Copy link
Contributor Author

dweiss commented Mar 21, 2025

I'll merge this in. Low risk and we can always revert if needed.

@dweiss dweiss merged commit c4f1183 into apache:main Mar 21, 2025
7 checks passed

// See LUCENE-9471. We redirect temporary location for gradle
// so that it doesn't pollute user's tmp. Wipe it during a clean though.

configure(rootProject) {
gradle.buildFinished {
// we clean up the java.io.tmpdir we've redirected gradle to use (LUCENE-9471).
// these are still used and populated with junk.
rootProject.delete fileTree(".gradle/tmp").matching {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment above that this is in project's directory. This caused confusion in the original discussion!

Copy link
Contributor

@uschindler uschindler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all fine :-) thanks

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

Successfully merging this pull request may close these issues.

Address gradle temp file pollution insanity
3 participants