@@ -14,6 +14,8 @@ dependencies {
1414version = " 1.0.20"
1515group = " net.servicestack" // Maven Group ID for the artifact
1616String packageId = " client"
17+ String groupID = group
18+ String versionNum = version
1719
1820String siteUrl = ' https://github.com/ServiceStack/ServiceStack.Java' // Homepage URL of the library
1921String gitUrl = ' https://github.com/ServiceStack/ServiceStack.Java.git' // Git repository URL
@@ -23,45 +25,48 @@ if(properties.getProperty("bintray.user", null) == null) {
2325 properties. load(project. file(' ./local.properties' ). newDataInputStream())
2426}
2527
26- task createPom {
27- pom {
28- project {
29- packaging ' jar'
28+ install {
29+ repositories. mavenInstaller {
30+ pom {
31+ project {
32+ packaging ' jar'
33+ groupId groupID
34+ artifactId packageId
35+ version versionNum
36+ // Add your description here
37+ name ' ServiceStack.Client'
38+ description ' A client library to call your ServiceStack webservices.'
39+ url siteUrl
3040
31- // Add your description here
32- name ' ServiceStack.Client'
33- description ' A client library to call your ServiceStack webservices.'
34- url siteUrl
35-
36- // Set your license
37- licenses {
38- license {
39- name ' The BSD 3-Clause License'
40- url ' https://raw.githubusercontent.com/ServiceStack/Assets/master/docs/license/LICENSE-BSD3.txt'
41+ // Set your license
42+ licenses {
43+ license {
44+ name ' The BSD 3-Clause License'
45+ url ' https://raw.githubusercontent.com/ServiceStack/Assets/master/docs/license/LICENSE-BSD3.txt'
46+ }
4147 }
42- }
4348
44- developers {
45- developer {
46- id ' mythz'
47- name ' Demis Bellot'
48- email ' team@servicestack.net'
49+ developers {
50+ developer {
51+ id ' mythz'
52+ name ' Demis Bellot'
53+ email ' team@servicestack.net'
54+ }
55+ developer {
56+ id ' layoric'
57+ name ' Darren Reid'
58+ email ' team@servicestack.net'
59+ }
4960 }
50- developer {
51- id ' layoric '
52- name ' Darren Reid '
53- email ' team@servicestack.net '
61+ scm {
62+ connection ' https://github.com/ServiceStack/ServiceStack.Java '
63+ developerConnection ' https://github.com/ServiceStack/ServiceStack.Java '
64+ url ' https://github.com/ServiceStack/ServiceStack.Java '
5465 }
5566 }
56- scm {
57- connection ' https://github.com/ServiceStack/ServiceStack.Java'
58- developerConnection ' https://github.com/ServiceStack/ServiceStack.Java'
59- url ' https://github.com/ServiceStack/ServiceStack.Java'
60- }
61- }
62- }. writeTo(" $buildDir /poms/pom-default.xml" ). writeTo(" pom.xml" )
67+ }. writeTo(' pom.xml' )
68+ }
6369}
64- build. dependsOn createPom
6570
6671bintray {
6772 user = properties. getProperty(" bintray.user" )
0 commit comments