Skip to content

Commit 4d4e544

Browse files
author
Alexander Furer
committed
sonatype auto close and release
1 parent bca83f6 commit 4d4e544

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
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"
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ 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"
2122
}
2223
}
2324
apply plugin: 'idea'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.4.5-SNAPSHOT
1+
version=3.0.0
22
group=io.github.lognet
33
#group=org.lognet
44
description=Spring Boot starter for Google RPC.

publishSonatype.gradle

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

1111

1212
apply plugin: 'com.bmuschko.nexus'
13+
apply plugin: 'io.codearte.nexus-staging'
14+
nexusStaging{
1315

16+
}
17+
def isRelease = !(version ==~ /.*SNAPSHOT/)
1418

19+
closeAndReleaseRepository{
20+
dependsOn uploadArchives
21+
onlyIf {
22+
isRelease
23+
}
24+
}
1525
modifyPom {
1626
project {
1727
name 'grpc-spring-boot-starter'

0 commit comments

Comments
 (0)