File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ script:
20
20
21
21
after_success :
22
22
- ./travis/publish.sh
23
+ - ./gradlew closeAndReleaseRepository
23
24
24
25
deploy :
25
26
provider : releases
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import java.util.regex.Matcher
19
19
plugins {
20
20
id ' org.ajoberstar.grgit' version ' 2.0.1'
21
21
id ' org.sonarqube' version ' 2.5'
22
+ id ' io.codearte.nexus-staging' version ' 0.11.0'
22
23
}
23
24
24
25
ext. scmInfo = getScmInfo()
@@ -182,6 +183,24 @@ sonarqube {
182
183
}
183
184
}
184
185
186
+ nexusStaging {
187
+ if (project. hasProperty(' stagingServerUrl' )) {
188
+ serverUrl = stagingServerUrl
189
+ }
190
+ if (project. hasProperty(' releaseRepositoryUser' )) {
191
+ username = releaseRepositoryUser
192
+ password = releaseRepositoryPassword
193
+ }
194
+ }
195
+
196
+ tasks. closeRepository. onlyIf {
197
+ rootProject. scmInfo. isRelease()
198
+ }
199
+
200
+ tasks. releaseRepository. onlyIf {
201
+ rootProject. scmInfo. isRelease()
202
+ }
203
+
185
204
class ScmInfo {
186
205
def version
187
206
def tag
You can’t perform that action at this time.
0 commit comments