1
1
import com.android.build.gradle.BaseExtension
2
2
import com.jfrog.bintray.gradle.BintrayExtension
3
- import com.jfrog.bintray.gradle.RecordingCopyTask
3
+ import com.jfrog.bintray.gradle.tasks. RecordingCopyTask
4
4
import org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention
5
5
import org.jfrog.gradle.plugin.artifactory.dsl.DoubleDelegateWrapper
6
6
import org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig
@@ -52,6 +52,10 @@ allprojects {
52
52
}
53
53
}
54
54
55
+ tasks.withType<Wrapper > {
56
+ distributionType = Wrapper .DistributionType .ALL
57
+ }
58
+
55
59
val Project .configDir get() = " $rootDir /library/quality"
56
60
val Project .reportsDir get() = " $buildDir /reports"
57
61
@@ -247,6 +251,50 @@ fun Project.setupPublishing() {
247
251
artifact(sourcesJar)
248
252
249
253
pom {
254
+ name.set(" FirebaseUI ${project.name.capitalize()} " )
255
+ description.set(" Firebase UI for Android" )
256
+ url.set(" https://github.com/firebase/FirebaseUI-Android" )
257
+
258
+ organization {
259
+ name.set(" Firebase" )
260
+ url.set(" https://github.com/firebase" )
261
+ }
262
+
263
+ scm {
264
+ val scmUrl
= " scm:git:[email protected] /firebase/firebaseui-android.git"
265
+ connection.set(scmUrl)
266
+ developerConnection.set(scmUrl)
267
+ url.set(this @pom.url)
268
+ tag.set(" HEAD" )
269
+ }
270
+
271
+ developers {
272
+ developer {
273
+ id.set(" samtstern" )
274
+ name.set(" Sam Stern" )
275
+
276
+ organization.set(" Firebase" )
277
+ organizationUrl.set(" https://firebase.google.com" )
278
+ roles.set(listOf (" Project-Administrator" , " Developer" ))
279
+ timezone.set(" -8" )
280
+ }
281
+
282
+ developer {
283
+ id.set(" SUPERCILEX" )
284
+ name.set(" Alex Saveau" )
285
+
286
+ roles.set(listOf (" Developer" ))
287
+ timezone.set(" -8" )
288
+ }
289
+ }
290
+
291
+ licenses {
292
+ license {
293
+ name.set(" The Apache License, Version 2.0" )
294
+ url.set(" https://www.apache.org/licenses/LICENSE-2.0.txt" )
295
+ }
296
+ }
297
+
250
298
withXml {
251
299
asNode().appendNode(" dependencies" ).apply {
252
300
fun Dependency.write (scope : String ) = appendNode(" dependency" ).apply {
@@ -267,54 +315,6 @@ fun Project.setupPublishing() {
267
315
dependency.write(" runtime" )
268
316
}
269
317
}
270
-
271
- // Common values
272
- val repoUrl = " https://github.com/firebase/FirebaseUI-Android"
273
- val scmUrl
= " scm:git:[email protected] /firebase/firebaseui-android.git"
274
-
275
- // Name
276
- asNode().appendNode(" name" , artifactId)
277
-
278
- // Description
279
- asNode().appendNode(" description" , " Firebase UI for Android" )
280
-
281
- // Organization
282
- asNode().appendNode(" organization" ).apply {
283
- appendNode(" name" , " FirebaseUI" )
284
- appendNode(" url" , repoUrl)
285
- }
286
-
287
- // URL
288
- asNode().appendNode(" url" , repoUrl)
289
-
290
- // SCM
291
- asNode().appendNode(" scm" ).apply {
292
- appendNode(" connection" , scmUrl)
293
- appendNode(" developerConnection" , scmUrl)
294
- appendNode(" url" , repoUrl)
295
- appendNode(" tag" , " HEAD" )
296
- }
297
-
298
- // Developers
299
- asNode().appendNode(" developers" ).appendNode(" developer" ).apply {
300
- appendNode(" id" , " samtstern" )
301
- appendNode(
" email" ,
" [email protected] " )
302
- appendNode(" organization" , " Firebase" )
303
- appendNode(" organizationUrl" , " https://firebase.google.com" )
304
-
305
- appendNode(" roles" ).apply {
306
- appendNode(" role" , " Project-Administrator" )
307
- appendNode(" role" , " Developer" )
308
- }
309
-
310
- appendNode(" timezone" , " -8" )
311
- }
312
-
313
- // Licenses
314
- asNode().appendNode(" licenses" ).appendNode(" license" ).apply {
315
- appendNode(" name" , " The Apache License, Version 2.0" )
316
- appendNode(" url" , " http://www.apache.org/licenses/LICENSE-2.0.txt" )
317
- }
318
318
}
319
319
}
320
320
}
@@ -356,16 +356,16 @@ fun Project.setupPublishing() {
356
356
" '$name ': ${publishing.artifacts} "
357
357
}
358
358
logger.info("""
359
- |Bintray configuration for '$publicationName '
360
- | Artifact name: $artifactName
361
- | Artifacts: ${publications.joinToString(transform = pubLog)}
362
- """ .trimMargin())
359
+ |Bintray configuration for '$publicationName '
360
+ | Artifact name: $artifactName
361
+ | Artifacts: ${publications.joinToString(transform = pubLog)}
362
+ """ .trimMargin())
363
363
logger.info("""
364
- |POM transformation
365
- | Src: $pomSrc
366
- | Dest: $pomDest
367
- | Name: $pomName
368
- """ .trimMargin())
364
+ |POM transformation
365
+ | Src: $pomSrc
366
+ | Dest: $pomDest
367
+ | Name: $pomName
368
+ """ .trimMargin())
369
369
370
370
filesSpec(closureOf<RecordingCopyTask > {
371
371
from(pomSrc)
0 commit comments