Skip to content

Commit 81f5b29

Browse files
author
Alexander Furer
committed
sonatype release
1 parent 57a3325 commit 81f5b29

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cache:
1212
before_install:
1313
- "openssl aes-256-cbc -K $encrypted_12c8071d2874_key -iv $encrypted_12c8071d2874_iv -in codesigning.asc.enc -out codesigning.asc -d && gpg --import ./codesigning.asc || echo"
1414
after_success:
15-
- "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_BRANCH} == 'master' ]] && [[ ${TRAVIS_TAG} == '' ]] && ./gradlew grpc-spring-boot-starter:uploadArchives grpc-spring-boot-starter:closeAndReleaseRepository"
15+
- "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_BRANCH} == 'master' ]] && [[ ${TRAVIS_TAG} == '' ]] && ./gradlew grpc-spring-boot-starter:closeAndReleaseRepository"
1616
# - ./gradlew bintrayUpload artifactoryPublish
1717
- bash <(curl -s https://codecov.io/bash)
1818
script:

build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,13 @@ buildscript {
1818
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0"
1919
classpath 'com.palantir:jacoco-coverage:0.4.0'
2020
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
21-
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.12.0"
21+
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.10.0"
2222
}
2323
}
2424
apply plugin: 'idea'
2525
apply plugin: 'com.palantir.jacoco-full-report'
2626
apply plugin: 'jacoco'
27-
apply plugin: 'io.codearte.nexus-staging'
2827

29-
nexusStaging{
30-
31-
}
32-
def isRelease = !(version ==~ /.*SNAPSHOT/)
33-
closeAndReleaseRepository{
34-
onlyIf {
35-
isRelease
36-
}
37-
}
3828

3929
allprojects{
4030
repositories {

publishSonatype.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ project['signing.secretKeyRingFile']='/home/travis/.gnupg/secring.gpg'
1010

1111

1212
apply plugin: 'com.bmuschko.nexus'
13+
apply plugin: 'io.codearte.nexus-staging'
1314

15+
def isRelease = !(version ==~ /.*SNAPSHOT/)
16+
closeAndReleaseRepository {
17+
dependsOn uploadArchives
18+
onlyIf {
19+
isRelease
20+
}
21+
}
1422

1523

1624
modifyPom {

0 commit comments

Comments
 (0)