@@ -29,13 +29,6 @@ apply plugin: 'org.jruyi.thrift'
2929apply plugin : ' maven-publish'
3030apply plugin : ' com.github.sherter.google-java-format'
3131
32- if (hasProperty(' signing.keyId' )) {
33- apply plugin : ' signing'
34- signing {
35- sign configurations. archives
36- }
37- }
38-
3932googleJavaFormat {
4033 toolVersion ' 1.5'
4134 include ' **/*.java'
@@ -45,7 +38,7 @@ googleJavaFormat {
4538tasks. googleJavaFormat. dependsOn ' license'
4639
4740group = ' com.uber.cadence'
48- version = ' 3.12.5 '
41+ version = ' 3.12.6 '
4942
5043description = ''' Uber Cadence Java Client'''
5144
@@ -225,47 +218,40 @@ def ossrhUsername = hasProperty('ossrhUsername') ? property('ossrhUsername') : '
225218def ossrhPassword = hasProperty(' ossrhPassword' ) ? property(' ossrhPassword' ) : ' '
226219
227220publishing {
228-
229221 publications {
230- // Uncomment below if you want to run "publishMavenLocal"
231- maven(MavenPublication ) {
232- pom. withXml {
233- asNode(). with {
234- appendNode(' packaging' , ' jar' )
235- appendNode(' name' , ' cadence-client' )
236- appendNode(' description' , description)
237- appendNode(' url' , ' https://github.com/uber-java/cadence-client' )
238- appendNode(' scm' ). with {
239- appendNode(' url' , ' https://github.com/uber-java/cadence-client' )
240- appendNode(
' connection' ,
' [email protected] :uber-java/cadence-client.git' )
222+ mavenJava(MavenPublication ) {
223+ from components. java
224+ artifact javadocJar
225+ artifact sourcesJar
226+ pom {
227+ name = ' cadence-client'
228+ description = ' Uber Cadence Java Client'
229+ url = ' https://github.com/uber-java/cadence-client'
230+ scm {
231+ url = ' https://github.com/uber-java/cadence-client'
232+ connection
= ' scm:git:[email protected] :uber-java/cadence-client.git/' 233+ developerConnection
= ' scm:git:[email protected] :uber-java/cadence-client.git/' 234+ }
235+ licenses {
236+ license {
237+ name = ' The Apache License, Version 2.0'
238+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
241239 }
242- appendNode(' licenses' ). with {
243- appendNode(' license' ). with {
244- appendNode(' name' , ' The Apache License, Version 2.0' )
245- appendNode(' url' , ' http://www.apache.org/licenses/LICENSE-2.0.txt' )
246- }
240+ }
241+ developers {
242+ developer {
243+ id = ' maxim'
244+ name = ' Maxim Fateev'
245+ 247246 }
248- appendNode(' developers' ). with {
249- appendNode(' maxim' ). with {
250- appendNode(' id' , ' maxim' )
251- appendNode(' name' , ' Maxim Fateev' )
252- appendNode(
' email' ,
' [email protected] ' )
253- }
254- appendNode(' developer' ). with {
255- appendNode(' id' , ' meiliang' )
256- appendNode(' name' , ' Liang Mei' )
257- appendNode(
' email' ,
' [email protected] ' )
258- }
247+ developer {
248+ id = ' meiliang'
249+ name = ' Liang Mei'
250+ 259251 }
260252 }
261253 }
262254 }
263-
264- mavenJava(MavenPublication ) {
265- from components. java
266- artifact javadocJar
267- artifact sourcesJar
268- }
269255 }
270256 repositories {
271257 maven {
@@ -282,6 +268,14 @@ publishing {
282268 }
283269}
284270
271+ if (hasProperty(' signing.keyId' )) {
272+ apply plugin : ' signing'
273+ signing {
274+ sign configurations. archives
275+ sign publishing. publications. mavenJava
276+ }
277+ }
278+
285279task registerDomain (type :JavaExec ) {
286280 main = ' com.uber.cadence.RegisterTestDomain'
287281 classpath = sourceSets. test. runtimeClasspath
@@ -299,61 +293,6 @@ test {
299293 }
300294}
301295
302- uploadArchives {
303- repositories {
304- mavenDeployer {
305- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
306-
307- repository(url : ' https://oss.sonatype.org/service/local/staging/deploy/maven2/' ) {
308- authentication(userName : ossrhUsername, password : ossrhPassword)
309- }
310-
311- snapshotRepository(url : ' https://oss.sonatype.org/content/repositories/snapshots/' ) {
312- authentication(userName : ossrhUsername, password : ossrhPassword)
313- }
314-
315- pom. project {
316- name ' cadence-client'
317- packaging ' jar'
318- // optionally artifactId can be defined here
319- description ' Uber Cadence Java Client'
320- url ' https://github.com/uber-java/cadence-client'
321-
322- scm {
323- connection
' scm:git:[email protected] :uber-java/cadence-client.git/' 324- developerConnection
' scm:git:[email protected] :uber-java/cadence-client.git/' 325- url ' https://github.com/uber-java/cadence-client'
326- }
327-
328- licenses {
329- license {
330- name ' The Apache License, Version 2.0'
331- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
332- }
333- }
334-
335- developers {
336- developer {
337- id ' maxim'
338- name ' Maxim Fateev'
339- 340- }
341- developer {
342- id ' mkol'
343- name ' Max K'
344- 345- }
346- developer {
347- id ' meiliang'
348- name ' Liang Mei'
349- 350- }
351- }
352- }
353- }
354- }
355- }
356-
357296jacoco {
358297 toolVersion = " 0.8.2"
359298}
0 commit comments