Skip to content

Commit

Permalink
[NO JIRA] Improve caching test output (#4504)
Browse files Browse the repository at this point in the history
* Disable test execution in the random order
* Remove "Build-Time" from jar Manifest (except plugin)
  • Loading branch information
leveretka authored Nov 14, 2023
1 parent 22eca36 commit 71f5cb1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
31 changes: 25 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,29 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration/>
</plugin>

<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${version.jar.plugin}</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifestEntries>
<!--
Develocity (gradle-enterprise-maven-extension) can reduce the build duration using its cache only for deterministic build.
'Build-Time', defined in the parent pom, changes at each build and prevents us from benefiting from the cache.
We didn't find a solution to unset 'Build-Time', so as a workaround, we provide a constant value '_'.
-->
<Build-Time>_</Build-Time>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -336,6 +348,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
5 changes: 5 additions & 0 deletions sonar-java-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
<sonarLintSupported>true</sonarLintSupported>
<sonarQubeMinVersion>9.9</sonarQubeMinVersion>
<jreMinVersion>11</jreMinVersion>
<archive>
<manifestEntries>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 71f5cb1

Please sign in to comment.