File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ext. pomMetadata = {
2+ pom {
3+ name = " Kronos"
4+ description = " An Open Source Kotlin SNTP library"
5+ url = " https://github.com/lyft/Kronos-Android"
6+ licenses {
7+ license {
8+ name = " The Apache License, Version 2.0"
9+ url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
10+ distribution = " repo"
11+ }
12+ }
13+ developers {
14+ developer {
15+ id = " lyft"
16+ name = " Lyft Inc."
17+ email = " maven@lyft.com"
18+ }
19+ }
20+ scm {
21+ connection = " scm:git:git://github.com/lyft/Kronos-Android.git"
22+ developerConnection = " scm:git:ssh://git@github.com/lyft/Kronos-Android.git"
23+ url = " https://github.com/lyft/Kronos-Android.git"
24+ }
25+ }
26+ }
Original file line number Diff line number Diff line change 11apply plugin : ' maven-publish'
22apply plugin : ' org.jetbrains.dokka-android'
3+ apply from : " $rootProject . rootDir /gradle/pom.gradle"
34
45task sourcesJar (type : Jar ) {
56 from project. android. sourceSets. main. java. srcDirs
@@ -26,6 +27,8 @@ project.afterEvaluate {
2627 classifier " javadoc"
2728 }
2829
30+ with(pomMetadata)
31+
2932 pom. withXml {
3033 final dependencies = asNode(). appendNode(' dependencies' )
3134
Original file line number Diff line number Diff line change 11apply plugin : ' maven-publish'
2+ apply from : " $rootProject . rootDir /gradle/pom.gradle"
23
34task sourcesJar (type : Jar , dependsOn : classes) {
45 from sourceSets. main. allSource
@@ -23,6 +24,8 @@ publishing {
2324 artifact javadocJar {
2425 classifier " javadoc"
2526 }
27+
28+ with(pomMetadata)
2629 }
2730 }
2831}
You can’t perform that action at this time.
0 commit comments