@@ -26,6 +26,13 @@ apply plugin: 'com.android.library'
2626version = " 0.0.1"
2727group = ' com.parse'
2828
29+ ext {
30+ projName = ' ParseUI-Login-Android'
31+ projArtifact = ' parseui-login-android'
32+ projDescription = ' A library contains login user interfaces for building apps with the Parse Android SDK.'
33+ projGitlink = ' https://github.com/ParsePlatform/ParseUI-Android'
34+ }
35+
2936dependencies {
3037 compile rootProject. ext. androidSupport
3138 compile rootProject. ext. parse
@@ -84,6 +91,29 @@ def isSnapshot = version.endsWith('-SNAPSHOT')
8491def ossrhUsername = hasProperty(' NEXUS_USERNAME' ) ? NEXUS_USERNAME : System . getenv(' CI_NEXUS_USERNAME' )
8592def ossrhPassword = hasProperty(' NEXUS_PASSWORD' ) ? NEXUS_PASSWORD : System . getenv(' CI_NEXUS_PASSWORD' )
8693
94+ def pomConfig = {
95+ scm {
96+ connection ' scm:git@github.com:ParsePlatform/ParseUI-Android.git'
97+ developerConnection ' scm:git@github.com:ParsePlatform/ParseUI-Android.git'
98+ url ' https://github.com/ParsePlatform/ParseUI-Android'
99+ }
100+
101+ licenses {
102+ license {
103+ name ' Platform License'
104+ url ' https://github.com/ParsePlatform/ParseUI-Android/blob/master/LICENSE'
105+ distribution ' repo'
106+ }
107+ }
108+
109+ developers {
110+ developer {
111+ id ' parse'
112+ name ' Parse'
113+ }
114+ }
115+ }
116+
87117uploadArchives {
88118 repositories. mavenDeployer {
89119 beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
@@ -96,34 +126,15 @@ uploadArchives {
96126 authentication(userName : ossrhUsername, password : ossrhPassword)
97127 }
98128
99- pom . project {
100- name ' ParseUI-Login- Android'
129+ def basePom = {
130+ name " ParseUI-Android"
101131 packaging ' aar'
102- artifactId ' parseui-login-android'
103- description ' A library contains login user interfaces for building apps with the Parse Android SDK.'
104- url ' https://github.com/ParsePlatform/ParseUI-Android'
105-
106- scm {
107- connection ' scm:git@github.com:ParsePlatform/ParseUI-Android.git'
108- developerConnection ' scm:git@github.com:ParsePlatform/ParseUI-Android.git'
109- url ' https://github.com/ParsePlatform/ParseUI-Android'
110- }
111-
112- licenses {
113- license {
114- name ' Platform License'
115- url ' https://github.com/ParsePlatform/ParseUI-Android/blob/master/LICENSE'
116- distribution ' repo'
117- }
118- }
119-
120- developers {
121- developer {
122- id ' parse'
123- name ' Parse'
124- }
125- }
132+ artifactId projArtifact
133+ description projDescription
134+ url projGitlink
126135 }
136+
137+ pom. project basePom << pomConfig
127138 }
128139}
129140
0 commit comments