Add enforcer rule to ban snapshots in dependencyManagement.
Closes #1687
This commit is contained in:
@@ -273,10 +273,21 @@
|
||||
<exclude>org.springframework.data:*</exclude>
|
||||
</excludes>
|
||||
</requireReleaseDeps>
|
||||
<NoSnapshotDependenciesInDependencyManagementRule
|
||||
implementation="de.smartics.maven.enforcer.rule.NoSnapshotsInDependencyManagementRule">
|
||||
<onlyWhenRelease>true</onlyWhenRelease>
|
||||
</NoSnapshotDependenciesInDependencyManagementRule>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>de.smartics.rules</groupId>
|
||||
<artifactId>smartics-enforcer-rules</artifactId>
|
||||
<version>1.0.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
@@ -1062,7 +1073,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>3.0.0-M3</version>
|
||||
<version>3.0.0</version>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
||||
11
pom.xml
11
pom.xml
@@ -83,6 +83,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-release-rules</id>
|
||||
@@ -96,10 +97,20 @@
|
||||
</requireJavaVersion>
|
||||
<requireReleaseDeps />
|
||||
<requireReleaseVersion />
|
||||
<NoSnapshotDependenciesInDependencyManagementRule
|
||||
implementation="de.smartics.maven.enforcer.rule.NoSnapshotsInDependencyManagementRule">
|
||||
</NoSnapshotDependenciesInDependencyManagementRule>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>de.smartics.rules</groupId>
|
||||
<artifactId>smartics-enforcer-rules</artifactId>
|
||||
<version>1.0.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
Reference in New Issue
Block a user