From 00bdec23a33cf8d5b50535b50eb425194aaf48f1 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 26 Sep 2023 15:31:18 -0300 Subject: [PATCH] Introduce a `-Dclean-cache` flag When the build is executed with this flag, it removes the `.cache` which contains storage from the import and sort plugins per version (which may grow over time) --- CONTRIBUTING.md | 4 ++++ independent-projects/parent/pom.xml | 34 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7800189027091..6b16d5f595585 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -352,6 +352,10 @@ in `quarkus-parent` (root `pom.xml`). When contributing to Quarkus, it is recommended to respect the following rules. +> **Note:** The `impsort-maven-plugin` uses the `.cache` directory on each module to speed up the build. +> Because we have configured the plugin to store in a versioned directory, you may notice over time that the `.cache` directory grows in size. You can safely delete the `.cache` directory in each module to reclaim the space. +> Running `./mvnw clean -Dclean-cache` automatically deletes that directory for you. + **Contributing to an extension** When you contribute to an extension, after having applied your changes, run: diff --git a/independent-projects/parent/pom.xml b/independent-projects/parent/pom.xml index a10bfa7def0c9..72740e5cb52e3 100644 --- a/independent-projects/parent/pom.xml +++ b/independent-projects/parent/pom.xml @@ -691,6 +691,40 @@ + + clean-cache + + + clean-cache + !false + + + + + + org.apache.maven.plugins + maven-clean-plugin + + + clean-cache-dirs + pre-clean + true + + clean + + + + + .cache + + + + + + + + + release