Skip to content

Commit 57a3325

Browse files
author
Alexander Furer
committed
sonatype release
1 parent 4efbf2f commit 57a3325

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
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:closeAndReleaseRepository"
15+
- "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_BRANCH} == 'master' ]] && [[ ${TRAVIS_TAG} == '' ]] && ./gradlew grpc-spring-boot-starter:uploadArchives grpc-spring-boot-starter:closeAndReleaseRepository"
1616
# - ./gradlew bintrayUpload artifactoryPublish
1717
- bash <(curl -s https://codecov.io/bash)
1818
script:

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ apply plugin: 'idea'
2525
apply plugin: 'com.palantir.jacoco-full-report'
2626
apply plugin: 'jacoco'
2727
apply plugin: 'io.codearte.nexus-staging'
28+
29+
nexusStaging{
30+
31+
}
32+
def isRelease = !(version ==~ /.*SNAPSHOT/)
33+
closeAndReleaseRepository{
34+
onlyIf {
35+
isRelease
36+
}
37+
}
38+
2839
allprojects{
2940
repositories {
3041
mavenCentral()

publishSonatype.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,8 @@ project['signing.secretKeyRingFile']='/home/travis/.gnupg/secring.gpg'
1111

1212
apply plugin: 'com.bmuschko.nexus'
1313

14-
nexusStaging{
1514

16-
}
17-
def isRelease = !(version ==~ /.*SNAPSHOT/)
1815

19-
closeAndReleaseRepository{
20-
dependsOn uploadArchives
21-
onlyIf {
22-
isRelease
23-
}
24-
}
2516
modifyPom {
2617
project {
2718
name 'grpc-spring-boot-starter'

0 commit comments

Comments
 (0)