Skip to content

Commit 9626d36

Browse files
committed
Gradle 4.7 revert
Change-Id: I55765eb1a87c5d9bd4aafa5e465c6a626eb84afa
1 parent 1eb9cd9 commit 9626d36

File tree

2 files changed

+49
-45
lines changed

2 files changed

+49
-45
lines changed

build.gradle.kts

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -245,50 +245,6 @@ fun Project.setupPublishing() {
245245
println("\taar: $releaseAar")
246246

247247
pom {
248-
name.set("FirebaseUI ${project.name.capitalize()}")
249-
description.set("Firebase UI for Android")
250-
url.set("https://github.com/firebase/FirebaseUI-Android")
251-
252-
organization {
253-
name.set("Firebase")
254-
url.set("https://github.com/firebase")
255-
}
256-
257-
scm {
258-
val scmUrl = "scm:git:[email protected]/firebase/firebaseui-android.git"
259-
connection.set(scmUrl)
260-
developerConnection.set(scmUrl)
261-
url.set(this@pom.url)
262-
tag.set("HEAD")
263-
}
264-
265-
developers {
266-
developer {
267-
id.set("samtstern")
268-
name.set("Sam Stern")
269-
email.set("[email protected]")
270-
organization.set("Firebase")
271-
organizationUrl.set("https://firebase.google.com")
272-
roles.set(listOf("Project-Administrator", "Developer"))
273-
timezone.set("-8")
274-
}
275-
276-
developer {
277-
id.set("SUPERCILEX")
278-
name.set("Alex Saveau")
279-
email.set("[email protected]")
280-
roles.set(listOf("Developer"))
281-
timezone.set("-8")
282-
}
283-
}
284-
285-
licenses {
286-
license {
287-
name.set("The Apache License, Version 2.0")
288-
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
289-
}
290-
}
291-
292248
withXml {
293249
asNode().appendNode("dependencies").apply {
294250
fun Dependency.write(scope: String) = appendNode("dependency").apply {
@@ -309,6 +265,54 @@ fun Project.setupPublishing() {
309265
dependency.write("runtime")
310266
}
311267
}
268+
269+
// Common values
270+
val repoUrl = "https://github.com/firebase/FirebaseUI-Android"
271+
val scmUrl = "scm:git:[email protected]/firebase/firebaseui-android.git"
272+
273+
// Name
274+
asNode().appendNode("name", artifactId)
275+
276+
// Description
277+
asNode().appendNode("description", "Firebase UI for Android")
278+
279+
// Organization
280+
asNode().appendNode("organization").apply {
281+
appendNode("name", "FirebaseUI")
282+
appendNode("url", repoUrl)
283+
}
284+
285+
// URL
286+
asNode().appendNode("url", repoUrl)
287+
288+
// SCM
289+
asNode().appendNode("scm").apply {
290+
appendNode("connection", scmUrl)
291+
appendNode("developerConnection", scmUrl)
292+
appendNode("url", repoUrl)
293+
appendNode("tag", "HEAD")
294+
}
295+
296+
// Developers
297+
asNode().appendNode("developers").appendNode("developer").apply {
298+
appendNode("id", "samtstern")
299+
appendNode("email", "[email protected]")
300+
appendNode("organization", "Firebase")
301+
appendNode("organizationUrl", "https://firebase.google.com")
302+
303+
appendNode("roles").apply {
304+
appendNode("role", "Project-Administrator")
305+
appendNode("role", "Developer")
306+
}
307+
308+
appendNode("timezone", "-8")
309+
}
310+
311+
// Licenses
312+
asNode().appendNode("licenses").appendNode("license").apply {
313+
appendNode("name", "The Apache License, Version 2.0")
314+
appendNode("url", "http://www.apache.org/licenses/LICENSE-2.0.txt")
315+
}
312316
}
313317
}
314318
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-rc-3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)