Skip to content

Commit ab5c1e3

Browse files
author
Alexander Furer
committed
next dev version
1 parent c520405 commit ab5c1e3

File tree

4 files changed

+36
-79
lines changed

4 files changed

+36
-79
lines changed

.travis.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,14 @@ cache:
1010
- $HOME/.gradle/caches/
1111
- $HOME/.gradle/wrapper/
1212
before_install:
13-
- chmod +x ./publish.sh
14-
- "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"
15-
- cd ./grpc-spring-boot-starter-gradle-plugin
16-
- "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"
17-
- cd ./..
13+
- chmod +x ./publish.sh
14+
- "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"
1815
install: true # disables default "./gradlew assemble" install script
1916
after_success:
2017
- ./publish.sh
2118
- bash <(curl -s https://codecov.io/bash)
2219
script:
23-
#- ./gradlew build codeCoverageReport
24-
- ./gradlew -S -p grpc-spring-boot-starter-gradle-plugin build
25-
20+
- ./gradlew build codeCoverageReport
2621

2722

2823

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ grpcVersion=1.38.0
22
springBootVersion=2.5.0
33
springCloudVersion=2020.0.3
44

5-
version=4.5.4
5+
version=4.5.5-SNAPSHOT
66
group=io.github.lognet
77
description=Spring Boot starter for Google RPC.
88
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter

grpc-spring-boot-starter-gradle-plugin/build.gradle

Lines changed: 30 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ project['signing.secretKeyRingFile'] = '/home/travis/.gnupg/secring.gpg'
2626
project['gradle.publish.key'] = System.getenv('gradlePublishKey')
2727
project['gradle.publish.secret'] = System.getenv('gradlePublishSecret')
2828

29-
30-
println "Parent" :
31-
fileTree("../").visit { FileVisitDetails details ->
32-
println details.file.path
33-
}
34-
println "Dir" :
35-
fileTree("./").visit { FileVisitDetails details ->
36-
println details.file.path
37-
}
38-
3929
repositories {
4030
mavenCentral()
4131
maven {
@@ -96,7 +86,35 @@ nexusPublishing {
9686
}
9787

9888
}
89+
def withPom = {pomObj->
90+
configure(pomObj,{
91+
name = 'grpc-spring-boot-starter-gradle-plugin'
92+
description = 'Configures project with grpc-spring-boot-starter'
93+
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
9994

95+
scm {
96+
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
97+
connection = 'scm:https://[email protected]/LogNet/grpc-spring-boot-starter.git'
98+
developerConnection = 'scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
99+
}
100+
101+
licenses {
102+
license {
103+
name = 'The Apache Software License, Version 2.0'
104+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
105+
distribution = 'repo'
106+
}
107+
}
108+
109+
developers {
110+
developer {
111+
id = 'jvmlet'
112+
name = 'Furer Alexander'
113+
114+
}
115+
}
116+
})
117+
}
100118
publishing {
101119
publishing {
102120
repositories {
@@ -110,66 +128,13 @@ publishing {
110128
publications {
111129
grpcBootPluginPluginMarkerMaven {
112130
// customize marker publications here
113-
pom {
114-
name = 'grpc-spring-boot-starter-gradle-plugin'
115-
description = 'Configures project with grpc-spring-boot-starter marker'
116-
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
117-
118-
scm {
119-
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
120-
connection = 'scm:https://[email protected]/LogNet/grpc-spring-boot-starter.git'
121-
developerConnection = 'scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
122-
}
123-
124-
licenses {
125-
license {
126-
name = 'The Apache Software License, Version 2.0'
127-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
128-
distribution = 'repo'
129-
}
130-
}
131-
132-
developers {
133-
developer {
134-
id = 'jvmlet'
135-
name = 'Furer Alexander'
136-
137-
}
138-
}
139-
}
131+
pom = withPom << {it.name +=" marker" }
140132
}
141133
pluginMaven {
142134
// customize main publications here
143135
artifact sourceJar
144136
artifact javadocJar
145-
pom {
146-
name = 'grpc-spring-boot-starter-gradle-plugin'
147-
description = 'Configures project with grpc-spring-boot-starter'
148-
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
149-
150-
scm {
151-
url = 'https://github.com/LogNet/grpc-spring-boot-starter'
152-
connection = 'scm:https://[email protected]/LogNet/grpc-spring-boot-starter.git'
153-
developerConnection = 'scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
154-
}
155-
156-
licenses {
157-
license {
158-
name = 'The Apache Software License, Version 2.0'
159-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
160-
distribution = 'repo'
161-
}
162-
}
163-
164-
developers {
165-
developer {
166-
id = 'jvmlet'
167-
name = 'Furer Alexander'
168-
169-
}
170-
}
171-
172-
}
137+
pom = withPom
173138
}
174139
}
175140
}

publish.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
22

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

0 commit comments

Comments
 (0)