File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 40
40
install : true
41
41
script :
42
42
- openssl aes-256-cbc -K $encrypted_8e5c960335c9_key -iv $encrypted_8e5c960335c9_iv -in secring.gpg.enc -out secring.gpg -d
43
- - if [ -n "${TRAVIS_TAG}" ]; then ./gradlew publish closeAndReleaseRepository; else ./gradlew publish; fi
43
+ - ./gradlew publish closeAndReleaseRepository
Original file line number Diff line number Diff line change @@ -153,11 +153,20 @@ subprojects {
153
153
configure<SigningExtension > {
154
154
isRequired = signingPassword != null && file(secretKeyRingFile).exists()
155
155
156
+ // TODO: Is it possible to access publishing extension in a safer way?
156
157
val publishing: PublishingExtension by project.extensions
157
158
sign(publishing.publications)
158
159
}
159
160
}
160
161
162
+ tasks.closeRepository.configure {
163
+ onlyIf { ! project.version.toString().endsWith(" -SNAPSHOT" ) }
164
+ }
165
+
166
+ tasks.releaseRepository.configure {
167
+ onlyIf { ! project.version.toString().endsWith(" -SNAPSHOT" ) }
168
+ }
169
+
161
170
nexusStaging {
162
171
packageGroup = " ru.bozaro"
163
172
username = ossrhUsername
You can’t perform that action at this time.
0 commit comments