Skip to content

Commit

Permalink
next dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Furer committed Jun 20, 2021
1 parent c520405 commit ab5c1e3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 79 deletions.
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- chmod +x ./publish.sh
- "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"
- cd ./grpc-spring-boot-starter-gradle-plugin
- "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"
- cd ./..
- chmod +x ./publish.sh
- "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"
install: true # disables default "./gradlew assemble" install script
after_success:
- ./publish.sh
- bash <(curl -s https://codecov.io/bash)
script:
#- ./gradlew build codeCoverageReport
- ./gradlew -S -p grpc-spring-boot-starter-gradle-plugin build

- ./gradlew build codeCoverageReport



Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ grpcVersion=1.38.0
springBootVersion=2.5.0
springCloudVersion=2020.0.3

version=4.5.4
version=4.5.5-SNAPSHOT
group=io.github.lognet
description=Spring Boot starter for Google RPC.
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter
Expand Down
95 changes: 30 additions & 65 deletions grpc-spring-boot-starter-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ project['signing.secretKeyRingFile'] = '/home/travis/.gnupg/secring.gpg'
project['gradle.publish.key'] = System.getenv('gradlePublishKey')
project['gradle.publish.secret'] = System.getenv('gradlePublishSecret')


println "Parent" :
fileTree("../").visit { FileVisitDetails details ->
println details.file.path
}
println "Dir" :
fileTree("./").visit { FileVisitDetails details ->
println details.file.path
}

repositories {
mavenCentral()
maven {
Expand Down Expand Up @@ -96,7 +86,35 @@ nexusPublishing {
}

}
def withPom = {pomObj->
configure(pomObj,{
name = 'grpc-spring-boot-starter-gradle-plugin'
description = 'Configures project with grpc-spring-boot-starter'
url = 'https://github.com/LogNet/grpc-spring-boot-starter'

scm {
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
connection = 'scm:https://LogNet@github.com/LogNet/grpc-spring-boot-starter.git'
developerConnection = 'scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
}

licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}

developers {
developer {
id = 'jvmlet'
name = 'Furer Alexander'
email = 'furer.alexander@gmail.com'
}
}
})
}
publishing {
publishing {
repositories {
Expand All @@ -110,66 +128,13 @@ publishing {
publications {
grpcBootPluginPluginMarkerMaven {
// customize marker publications here
pom {
name = 'grpc-spring-boot-starter-gradle-plugin'
description = 'Configures project with grpc-spring-boot-starter marker'
url = 'https://github.com/LogNet/grpc-spring-boot-starter'

scm {
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
connection = 'scm:https://LogNet@github.com/LogNet/grpc-spring-boot-starter.git'
developerConnection = 'scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
}

licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}

developers {
developer {
id = 'jvmlet'
name = 'Furer Alexander'
email = 'furer.alexander@gmail.com'
}
}
}
pom = withPom << {it.name +=" marker" }
}
pluginMaven {
// customize main publications here
artifact sourceJar
artifact javadocJar
pom {
name = 'grpc-spring-boot-starter-gradle-plugin'
description = 'Configures project with grpc-spring-boot-starter'
url = 'https://github.com/LogNet/grpc-spring-boot-starter'

scm {
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
connection = 'scm:https://LogNet@github.com/LogNet/grpc-spring-boot-starter.git'
developerConnection = 'scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
}

licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}

developers {
developer {
id = 'jvmlet'
name = 'Furer Alexander'
email = 'furer.alexander@gmail.com'
}
}

}
pom = withPom
}
}
}
Expand Down
7 changes: 2 additions & 5 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

if [[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_BRANCH} == 'master' ]] && [[ ${TRAVIS_TAG} == '' ]]; then
#./gradlew -S publishToSonatype closeAndReleaseRepository
ll
ll ./grpc-spring-boot-starter-gradle-plugin
./gradlew -S -p grpc-spring-boot-starter-gradle-plugin build publishToSonatype closeAndReleaseRepository
# ./gradlew -S -p grpc-spring-boot-starter-gradle-plugin build publishPlugins
./gradlew -S publishToSonatype closeAndReleaseRepository
./gradlew -S -p grpc-spring-boot-starter-gradle-plugin build publishToSonatype closeAndReleaseRepository publishPlugins
fi

0 comments on commit ab5c1e3

Please sign in to comment.