#304 - Added pre-release build profile to check for third-party snapshot dependencies.
This commit is contained in:
@@ -145,6 +145,43 @@
|
||||
|
||||
</profile>
|
||||
|
||||
<!--
|
||||
Profile to be run before a release is executed, currently does the following:
|
||||
|
||||
- Prevents thrid-party snapshot dependencies in projects
|
||||
-->
|
||||
|
||||
<profile>
|
||||
<id>pre-release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-no-third-party-snapshots</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireReleaseDeps>
|
||||
<failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
|
||||
<excludes>
|
||||
<exclude>org.springframework.data.build:*</exclude>
|
||||
<exclude>org.springframework.data:*</exclude>
|
||||
</excludes>
|
||||
</requireReleaseDeps>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
|
||||
<!-- Profile for SonarCube -->
|
||||
@@ -739,6 +776,12 @@
|
||||
<version>1.0</version>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.3.1</version>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</pluginManagement>
|
||||
|
||||
Reference in New Issue
Block a user