Skip to content

Commit 5db03df

Browse files
committed
1 parent 78cadd0 commit 5db03df

File tree

1 file changed

+37
-32
lines changed

1 file changed

+37
-32
lines changed

src/AndroidClient/client/build.gradle

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ dependencies {
1414
version = "1.0.20"
1515
group = "net.servicestack" // Maven Group ID for the artifact
1616
String packageId = "client"
17+
String groupID = group
18+
String versionNum = version
1719

1820
String siteUrl = 'https://github.com/ServiceStack/ServiceStack.Java' // Homepage URL of the library
1921
String 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

6671
bintray {
6772
user = properties.getProperty("bintray.user")

0 commit comments

Comments
 (0)