This is an automated email from the ASF dual-hosted git repository. jhelou pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 3bfa326271e22fecbb75f76191ffb721dfee9299 Author: Jean Helou <j...@xn--gml-cma.com> AuthorDate: Tue Aug 12 19:14:18 2025 +0200 [INFRA-25461] configure remote build cache for james Writing to cache requires having the clean target in the command, since the project has been built before most of the build should be pulled from cache --- .mvn/develocity.xml | 3 +- Jenkinsfile | 4 +- pom.xml | 129 +++++++++++++--------------------------------------- 3 files changed, 36 insertions(+), 100 deletions(-) diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml index 7f34d552b7..24d92dd289 100644 --- a/.mvn/develocity.xml +++ b/.mvn/develocity.xml @@ -50,7 +50,8 @@ </cleanup> </local> <remote> - <storeEnabled>false</storeEnabled> + <enabled>true</enabled> + <storeEnabled>#{isTrue(env['CI'])}</storeEnabled> <!-- the next step is this <storeEnabled>#{isTrue(env['CI'])</storeEnabled> diff --git a/Jenkinsfile b/Jenkinsfile index 46260080c5..911ef58f3e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,7 +96,7 @@ pipeline { stage('Stable Tests') { steps { echo 'Running tests' - sh 'mvn -B -e -fae test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true jacoco:report-aggregate@jacoco-report' + sh 'mvn -B -e -fae clean test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true jacoco:report-aggregate@jacoco-report' } post { always { @@ -117,7 +117,7 @@ pipeline { steps { echo 'Running unstable tests' catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh 'mvn -B -e -fae test -Punstable-tests ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true' + sh 'mvn -B -e -fae clean test -Punstable-tests ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true' } } post { diff --git a/pom.xml b/pom.xml index 3be76c23a9..151303be16 100644 --- a/pom.xml +++ b/pom.xml @@ -3157,6 +3157,32 @@ <artifactId>download-maven-plugin</artifactId> <version>1.13.0</version> </plugin> + <plugin> + <groupId>com.gradle</groupId> + <artifactId>develocity-maven-extension</artifactId> + <configuration> + <develocity> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <executions> + <execution> + <id>default-compile</id> + <inputs> + <properties> + <property> + <name>moduleVersion</name> + </property> + </properties> + </inputs> + </execution> + </executions> + </plugin> + </plugins> + </develocity> + </configuration> + </plugin> <plugin> <groupId>org.scalatest</groupId> <artifactId>scalatest-maven-plugin</artifactId> @@ -3992,16 +4018,6 @@ <build> <pluginManagement> <plugins> - <plugin> - <groupId>io.github.git-commit-id</groupId> - <artifactId>git-commit-id-maven-plugin</artifactId> - <executions> - <execution> - <id>get-the-git-infos</id> - <phase>none</phase> - </execution> - </executions> - </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> @@ -4012,20 +4028,6 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <executions> - <execution> - <id>default-compile</id> - <phase>none</phase> - </execution> - <execution> - <id>default-testCompile</id> - <phase>none</phase> - </execution> - </executions> - </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> @@ -4041,69 +4043,6 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <executions> - <execution> - <id>build-test-jars</id> - <phase>none</phase> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - <executions> - <execution> - <phase>none</phase> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-remote-resources-plugin</artifactId> - <executions> - <execution> - <id>process</id> - <phase>none</phase> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <execution> - <id>default-resources</id> - <phase>none</phase> - </execution> - <execution> - <id>default-testResources</id> - <phase>none</phase> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <executions> - <execution> - <id>attach-descriptor</id> - <phase>none</phase> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>attach-sources</id> - <phase>none</phase> - </execution> - </executions> - </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> @@ -4112,25 +4051,21 @@ </configuration> </plugin> <plugin> - <groupId>net.alchim31.maven</groupId> - <artifactId>scala-maven-plugin</artifactId> + <groupId>com.github.ekryd.sortpom</groupId> + <artifactId>sortpom-maven-plugin</artifactId> <executions> <execution> - <id>scala-compile-first</id> - <phase>none</phase> - </execution> - <execution> - <id>scala-test-compile</id> + <id>strict-pom-ordering</id> <phase>none</phase> </execution> </executions> </plugin> <plugin> - <groupId>com.github.ekryd.sortpom</groupId> - <artifactId>sortpom-maven-plugin</artifactId> + <groupId>io.github.evis</groupId> + <artifactId>scalafix-maven-plugin_2.13</artifactId> <executions> <execution> - <id>strict-pom-ordering</id> + <id>scala-check-style</id> <phase>none</phase> </execution> </executions> --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org