Fail if a snapshot suffix is detected and we are on staging/release.
This commit is contained in:
parent
26e9c51456
commit
60375a9b45
20
pom.xml
20
pom.xml
|
@ -331,11 +331,19 @@
|
||||||
<value>${project.version}</value>
|
<value>${project.version}</value>
|
||||||
<regex>.*-SNAPSHOT$</regex>
|
<regex>.*-SNAPSHOT$</regex>
|
||||||
<replacement>true</replacement>
|
<replacement>true</replacement>
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
<failIfNoMatch>true</failIfNoMatch>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<version>3.0.0-M1</version>
|
||||||
|
<configuration>
|
||||||
|
<skip>${skip.when.is.snapshot.used}</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.github.olivierlemasle.maven</groupId>
|
<groupId>io.github.olivierlemasle.maven</groupId>
|
||||||
<artifactId>plaintext-maven-plugin</artifactId>
|
<artifactId>plaintext-maven-plugin</artifactId>
|
||||||
|
@ -432,7 +440,7 @@
|
||||||
<value>${project.version}</value>
|
<value>${project.version}</value>
|
||||||
<regex>.*-SNAPSHOT$</regex>
|
<regex>.*-SNAPSHOT$</regex>
|
||||||
<replacement>true</replacement>
|
<replacement>true</replacement>
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
<failIfNoMatch>true</failIfNoMatch>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
@ -463,6 +471,14 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<version>3.0.0-M1</version>
|
||||||
|
<configuration>
|
||||||
|
<skip>${skip.when.is.snapshot.used}</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
</build>
|
</build>
|
||||||
|
|
Loading…
Reference in New Issue