Added development build option to pom to skip signing
This commit is contained in:
parent
4ce53017a1
commit
4e6a2f18cd
2 changed files with 5 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
|
@ -14,7 +14,7 @@ node {
|
|||
}
|
||||
|
||||
withMaven(mavenConfiguration) {
|
||||
def mvnParams = "-Dbuild.number=${BUILD_NUMBER}"
|
||||
def mvnParams = "-Dbuild.number=${BUILD_NUMBER} -Dbuild.development=false"
|
||||
|
||||
stage('Build') {
|
||||
sh "mvn ${mvnParams} clean compile"
|
||||
|
|
|
|||
4
pom.xml
4
pom.xml
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
<properties>
|
||||
<build.number>SNAPSHOT</build.number>
|
||||
<build.development>true</build.development>
|
||||
<java.version>1.8</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
|
@ -148,6 +149,9 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
<configuration>
|
||||
<skip>${build.development}</skip>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue