@@ -29,13 +29,6 @@ apply plugin: 'org.jruyi.thrift'
29
29
apply plugin : ' maven-publish'
30
30
apply plugin : ' com.github.sherter.google-java-format'
31
31
32
- if (hasProperty(' signing.keyId' )) {
33
- apply plugin : ' signing'
34
- signing {
35
- sign configurations. archives
36
- }
37
- }
38
-
39
32
googleJavaFormat {
40
33
toolVersion ' 1.5'
41
34
include ' **/*.java'
@@ -45,7 +38,7 @@ googleJavaFormat {
45
38
tasks. googleJavaFormat. dependsOn ' license'
46
39
47
40
group = ' com.uber.cadence'
48
- version = ' 3.12.5 '
41
+ version = ' 3.12.6 '
49
42
50
43
description = ''' Uber Cadence Java Client'''
51
44
@@ -225,47 +218,40 @@ def ossrhUsername = hasProperty('ossrhUsername') ? property('ossrhUsername') : '
225
218
def ossrhPassword = hasProperty(' ossrhPassword' ) ? property(' ossrhPassword' ) : ' '
226
219
227
220
publishing {
228
-
229
221
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' , ' git@github.com: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:git@github.com:uber-java/cadence-client.git/'
233
+ developerConnection = ' scm:git:git@github.com: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'
241
239
}
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
+ email = ' maxim@uber.com'
247
246
}
248
- appendNode(' developers' ). with {
249
- appendNode(' maxim' ). with {
250
- appendNode(' id' , ' maxim' )
251
- appendNode(' name' , ' Maxim Fateev' )
252
- appendNode(' email' , ' maxim@uber.com' )
253
- }
254
- appendNode(' developer' ). with {
255
- appendNode(' id' , ' meiliang' )
256
- appendNode(' name' , ' Liang Mei' )
257
- appendNode(' email' , ' meiliang@uber.com' )
258
- }
247
+ developer {
248
+ id = ' meiliang'
249
+ name = ' Liang Mei'
250
+ email = ' meiliang@uber.com'
259
251
}
260
252
}
261
253
}
262
254
}
263
-
264
- mavenJava(MavenPublication ) {
265
- from components. java
266
- artifact javadocJar
267
- artifact sourcesJar
268
- }
269
255
}
270
256
repositories {
271
257
maven {
@@ -282,6 +268,14 @@ publishing {
282
268
}
283
269
}
284
270
271
+ if (hasProperty(' signing.keyId' )) {
272
+ apply plugin : ' signing'
273
+ signing {
274
+ sign configurations. archives
275
+ sign publishing. publications. mavenJava
276
+ }
277
+ }
278
+
285
279
task registerDomain (type :JavaExec ) {
286
280
main = ' com.uber.cadence.RegisterTestDomain'
287
281
classpath = sourceSets. test. runtimeClasspath
@@ -299,61 +293,6 @@ test {
299
293
}
300
294
}
301
295
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:git@github.com:uber-java/cadence-client.git/'
324
- developerConnection ' scm:git:git@github.com: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
- email ' maxim@uber.com'
340
- }
341
- developer {
342
- id ' mkol'
343
- name ' Max K'
344
- email ' mkol@uber.com'
345
- }
346
- developer {
347
- id ' meiliang'
348
- name ' Liang Mei'
349
- email ' meiliang@uber.com'
350
- }
351
- }
352
- }
353
- }
354
- }
355
- }
356
-
357
296
jacoco {
358
297
toolVersion = " 0.8.2"
359
298
}
0 commit comments