Skip to content

Commit

Permalink
Merge pull request quarkusio#36173 from gastaldi/clean_cache
Browse files Browse the repository at this point in the history
Introduce a `-Dclean-cache` flag
  • Loading branch information
gastaldi authored Sep 28, 2023
2 parents 29c2ce1 + 00bdec2 commit b10a14f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,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:
Expand Down
34 changes: 34 additions & 0 deletions independent-projects/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,40 @@
</pluginManagement>
</build>
<profiles>
<profile>
<id>clean-cache</id>
<activation>
<property>
<name>clean-cache</name>
<value>!false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>clean-cache-dirs</id>
<phase>pre-clean</phase>
<inherited>true</inherited>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>.cache</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit b10a14f

Please sign in to comment.