@@ -225,47 +225,40 @@ def ossrhUsername = hasProperty('ossrhUsername') ? property('ossrhUsername') : '
225
225
def ossrhPassword = hasProperty(' ossrhPassword' ) ? property(' ossrhPassword' ) : ' '
226
226
227
227
publishing {
228
-
229
228
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' )
229
+ mavenJava(MavenPublication ) {
230
+ from components. java
231
+ artifact javadocJar
232
+ artifact sourcesJar
233
+ pom {
234
+ name = ' cadence-client'
235
+ description = ' Uber Cadence Java Client'
236
+ url = ' https://github.com/uber-java/cadence-client'
237
+ scm {
238
+ url = ' https://github.com/uber-java/cadence-client'
239
+ connection
= ' scm:git:[email protected] :uber-java/cadence-client.git/'
240
+ developerConnection
= ' scm:git:[email protected] :uber-java/cadence-client.git/'
241
+ }
242
+ licenses {
243
+ license {
244
+ name = ' The Apache License, Version 2.0'
245
+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
241
246
}
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
- }
247
+ }
248
+ developers {
249
+ developer {
250
+ id = ' maxim'
251
+ name = ' Maxim Fateev'
252
+
247
253
}
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
- }
254
+ developer {
255
+ id = ' meiliang'
256
+ name = ' Liang Mei'
257
+
259
258
}
260
259
}
261
260
}
262
261
}
263
-
264
- mavenJava(MavenPublication ) {
265
- from components. java
266
- artifact javadocJar
267
- artifact sourcesJar
268
- }
269
262
}
270
263
repositories {
271
264
maven {
@@ -282,6 +275,10 @@ publishing {
282
275
}
283
276
}
284
277
278
+ signing {
279
+ sign publishing. publications. mavenJava
280
+ }
281
+
285
282
task registerDomain (type :JavaExec ) {
286
283
main = ' com.uber.cadence.RegisterTestDomain'
287
284
classpath = sourceSets. test. runtimeClasspath
@@ -299,61 +296,6 @@ test {
299
296
}
300
297
}
301
298
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
-
357
299
jacoco {
358
300
toolVersion = " 0.8.2"
359
301
}
0 commit comments