Skip to content

Commit

Permalink
Gradle: add description to poms
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Nov 24, 2020
1 parent e84452a commit a43273b
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions gradle/publish-android.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ afterEvaluate {
release(MavenPublication) {
pom {
name = project.name
description = project.description
url = 'https://github.com/microg/GmsCore'
licenses {
license {
Expand Down
23 changes: 23 additions & 0 deletions gradle/publish-java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,33 @@
* SPDX-License-Identifier: Apache-2.0
*/

task javaSourcesJar(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allJava
}

javadoc {
classpath = configurations.compileClasspath
source = sourceSets.main.allJava
}

task javaJavadocsJar(type: Jar) {
archiveClassifier.set("javadoc")
from javadoc
}

artifacts {
archives javaSourcesJar
archives javaJavadocsJar
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
pom {
name = project.name
description = project.description
url = 'https://github.com/microg/GmsCore'
licenses {
license {
Expand All @@ -34,6 +55,8 @@ afterEvaluate {
}

from components.java
artifact javaSourcesJar
artifact javaJavadocsJar
}
}
if (project.hasProperty('sonatype.username')) {
Expand Down
2 changes: 2 additions & 0 deletions play-services-base-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ android {
}

apply from: '../gradle/publish-android.gradle'

description = 'microG API for play-services-base'
2 changes: 2 additions & 0 deletions play-services-base-core-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ android {
}

apply from: '../gradle/publish-android.gradle'

description = 'UI for microG service implementation for play-services-base'
2 changes: 2 additions & 0 deletions play-services-base-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ android {
}

apply from: '../gradle/publish-android.gradle'

description = 'microG service implementation for play-services-base'
2 changes: 2 additions & 0 deletions play-services-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ android {

apply from: '../gradle/publish-android.gradle'

description = 'microG implementation of play-services-base'

dependencies {
api project(':play-services-basement')
api project(':play-services-tasks')
Expand Down
2 changes: 2 additions & 0 deletions play-services-basement/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ android {
}

apply from: '../gradle/publish-android.gradle'

description = 'microG implementation of play-services-basement'
2 changes: 2 additions & 0 deletions play-services-nearby-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ android {

apply from: '../gradle/publish-android.gradle'

description = 'microG API for play-services-nearby'

dependencies {
api project(':play-services-basement')
api project(':play-services-base-api')
Expand Down
2 changes: 2 additions & 0 deletions play-services-nearby-core-proto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ compileTestKotlin {
}

apply from: '../gradle/publish-java.gradle'

description = 'Protocol buffers for microG implementation of play-services-nearby'
2 changes: 2 additions & 0 deletions play-services-nearby-core-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ android {
}

apply from: '../gradle/publish-android.gradle'

description = 'UI for microG service implementation for play-services-nearby'
2 changes: 2 additions & 0 deletions play-services-nearby-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ android {
}

apply from: '../gradle/publish-android.gradle'

description = 'microG service implementation for play-services-nearby'
2 changes: 2 additions & 0 deletions play-services-nearby/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ android {

apply from: '../gradle/publish-android.gradle'

description = 'microG implementation of play-services-nearby'

dependencies {
api project(':play-services-base')
api project(':play-services-nearby-api')
Expand Down
2 changes: 2 additions & 0 deletions play-services-tasks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ dependencies {
}

apply from: '../gradle/publish-android.gradle'

description = 'microG implementation of play-services-tasks'

0 comments on commit a43273b

Please sign in to comment.