Gradle: add description to poms

This commit is contained in:
Marvin W 2020-11-24 22:42:07 +01:00
parent e84452aeaf
commit a43273b5e0
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
13 changed files with 46 additions and 0 deletions

View File

@ -18,6 +18,7 @@ afterEvaluate {
release(MavenPublication) {
pom {
name = project.name
description = project.description
url = 'https://github.com/microg/GmsCore'
licenses {
license {

View File

@ -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 {
@ -34,6 +55,8 @@ afterEvaluate {
}
from components.java
artifact javaSourcesJar
artifact javaJavadocsJar
}
}
if (project.hasProperty('sonatype.username')) {

View File

@ -42,3 +42,5 @@ android {
}
apply from: '../gradle/publish-android.gradle'
description = 'microG API for play-services-base'

View File

@ -60,3 +60,5 @@ android {
}
apply from: '../gradle/publish-android.gradle'
description = 'UI for microG service implementation for play-services-base'

View File

@ -31,3 +31,5 @@ android {
}
apply from: '../gradle/publish-android.gradle'
description = 'microG service implementation for play-services-base'

View File

@ -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')

View File

@ -53,3 +53,5 @@ android {
}
apply from: '../gradle/publish-android.gradle'
description = 'microG implementation of play-services-basement'

View File

@ -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')

View File

@ -25,3 +25,5 @@ compileTestKotlin {
}
apply from: '../gradle/publish-java.gradle'
description = 'Protocol buffers for microG implementation of play-services-nearby'

View File

@ -64,3 +64,5 @@ android {
}
apply from: '../gradle/publish-android.gradle'
description = 'UI for microG service implementation for play-services-nearby'

View File

@ -52,3 +52,5 @@ android {
}
apply from: '../gradle/publish-android.gradle'
description = 'microG service implementation for play-services-nearby'

View File

@ -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')

View File

@ -28,3 +28,5 @@ dependencies {
}
apply from: '../gradle/publish-android.gradle'
description = 'microG implementation of play-services-tasks'