File tree 5 files changed +13
-15
lines changed
5 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,6 @@ target/
10
10
.idea /
11
11
* .iml
12
12
* .iws
13
+
14
+ # gnupg keyring
15
+ /.gnupg
Original file line number Diff line number Diff line change @@ -2,11 +2,14 @@ language: java
2
2
sudo : false
3
3
4
4
before_install :
5
+ - openssl aes-256-cbc -d -pass "env:DECRYPT_KEYPHRASE" -in .gnupg.tar.enc | tar xv
5
6
- " export DISPLAY=:99.0"
6
7
- " sh -e /etc/init.d/xvfb start"
8
+ - " [[ ${TRAVIS_TAG} != '' ]] && mvn versions:set -DnewVersion='${TRAVIS_TAG}'"
7
9
8
10
script : mvn clean verify
9
11
10
12
after_success :
11
13
- mvn jacoco:report coveralls:report
12
14
- " [[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DreposityId=sonatype-nexus-snapshots -DskipTests --settings deploy-settings.xml"
15
+ - " [[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} != '' ]] && mvn deploy -DreposityId=sonatype-nexus-staging -DskipTests --settings deploy-settings.xml"
Original file line number Diff line number Diff line change @@ -177,23 +177,13 @@ You can access snapshot builds from the sonatype repository:
177
177
178
178
179
179
#### Build
180
- In order to build spring-boot-admin you need to have node.js and npm on your PATH.
180
+ In order to build spring-boot-admin you need to have node.js and npm on your ` PATH ` .
181
181
182
182
``` shell
183
183
mvn clean package
184
184
```
185
185
186
- #### Release
187
-
188
- ``` shell
189
- mvn build-helper:parse-version versions:set -DnewVersion=${parsedVersion.majorVersion} .${parsedVersion.minorVersion} .${parsedVersion.incrementalVersion}
190
- mvn -Psign-artifacts clean deploy
191
- ```
192
-
193
- #### Increment version for next release
194
-
195
- Example:
196
-
186
+ #### Set version for next release
197
187
``` shell
198
188
mvn build-helper:parse-version versions:set versions:commit -DnewVersion=1.0.0-SNAPSHOT
199
189
```
Original file line number Diff line number Diff line change 17
17
<properties >
18
18
<java .version>1.7</java .version>
19
19
<main .basedir>${basedir} </main .basedir>
20
- <passphrase >${gpg.passphrase}</passphrase >
21
20
<spring-boot .version>1.3.0.RC1</spring-boot .version>
22
21
<spring-cloud .version>Brixton.M2</spring-cloud .version>
23
22
<build-plugin .jacoco.version>0.7.5.201505241946</build-plugin .jacoco.version>
102
101
<profile >
103
102
<id >sign-artifacts</id >
104
103
<activation >
105
- <activeByDefault >false</activeByDefault >
104
+ <property >
105
+ <name >env.GPG_PASSPHRASE</name >
106
+ </property >
106
107
</activation >
107
108
<build >
108
109
<plugins >
109
110
<plugin >
110
111
<groupId >org.apache.maven.plugins</groupId >
111
112
<artifactId >maven-gpg-plugin</artifactId >
112
113
<configuration >
113
- <passphrase >${passphrase} </passphrase >
114
+ <passphrase >${env.GPG_PASSPHRASE} </passphrase >
115
+ <homedir >${user.dir} /.gnupg</homedir >
114
116
</configuration >
115
117
<executions >
116
118
<execution >
You can’t perform that action at this time.
0 commit comments