All Ecosystems
java

Java

Clean Maven and Gradle build outputs, target directories, and IDE artifacts. Supports Spring Boot, Micronaut, and Quarkus.

Avg. Space Saved

200MB - 2GB per project

Detection Files

3 files

Artifact Types

7 types

Cleanable Artifacts

Cluttered can safely clean these Java build artifacts:

target/build/.gradle/out/.idea/*.jar*.war

Project Detection

Cluttered identifies Java projects by looking for these files:

pom.xmlbuild.gradlebuild.gradle.kts

Overview

Java projects generate substantial build artifacts. Between Maven's target directories, Gradle's build outputs, and IDE-generated files, a single project can easily consume gigabytes of space.

What Cluttered Cleans

ArtifactDescriptionTypical Size
target/Maven build output100MB - 1GB
build/Gradle build output100MB - 1GB
.gradle/Gradle cache and wrapper50MB - 500MB
out/IntelliJ IDEA output50MB - 500MB
.idea/IDE configuration10MB - 100MB

Why Java Builds Get Large

Java projects accumulate space from:

  • Compiled classes: Every .java becomes .class files
  • Fat JARs: Spring Boot bundles all dependencies
  • Multi-module projects: Each module has its own target/build
  • Test outputs: Compiled tests and reports

Build Tool Support

ToolDetectionClean Support
Mavenpom.xmlFull
Gradlebuild.gradleFull
Antbuild.xmlPartial
BazelBUILDPartial

Safety Considerations

Cluttered protects your Java projects by:

  • Detecting running JVM processes in project directories
  • Checking for active Maven/Gradle builds
  • Identifying recently modified source files
  • Preserving release artifacts in designated directories

Maven vs Gradle Cleanup

ActionMavenGradleCluttered
Clean buildmvn cleangradle cleanOne-click
Preserve depsNot possibleNot possibleYes
Multi-modulePer-modulePer-moduleAll at once

Frequently Asked Questions

Will cleaning break my project?

No. Run mvn compile or gradle build to rebuild. Source code is never touched.

What about my local Maven repository?

The ~/.m2/repository is a shared cache. Cluttered Pro can analyze and clean unused dependencies.

Does it clean IntelliJ caches?

Project-level .idea and out directories can be cleaned. Global IDE caches require explicit opt-in.

  • Android - Uses Gradle for builds
  • Rust - Similar compiled language patterns
  • Go - Also produces large binaries

Ready to clean your Java projects?

Download Cluttered and reclaim your disk space in minutes.