diff --git a/gradle/publish-android.gradle b/gradle/publish-android.gradle index d41ae07a..f299b7ce 100644 --- a/gradle/publish-android.gradle +++ b/gradle/publish-android.gradle @@ -18,6 +18,7 @@ afterEvaluate { release(MavenPublication) { pom { name = project.name + description = project.description url = 'https://github.com/microg/GmsCore' licenses { license { diff --git a/gradle/publish-java.gradle b/gradle/publish-java.gradle index 2956bf97..b4c2a031 100644 --- a/gradle/publish-java.gradle +++ b/gradle/publish-java.gradle @@ -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')) { diff --git a/play-services-base-api/build.gradle b/play-services-base-api/build.gradle index 44bb7b0f..ac43ddc9 100644 --- a/play-services-base-api/build.gradle +++ b/play-services-base-api/build.gradle @@ -42,3 +42,5 @@ android { } apply from: '../gradle/publish-android.gradle' + +description = 'microG API for play-services-base' diff --git a/play-services-base-core-ui/build.gradle b/play-services-base-core-ui/build.gradle index bed6a1a6..fae9ccf8 100644 --- a/play-services-base-core-ui/build.gradle +++ b/play-services-base-core-ui/build.gradle @@ -60,3 +60,5 @@ android { } apply from: '../gradle/publish-android.gradle' + +description = 'UI for microG service implementation for play-services-base' diff --git a/play-services-base-core/build.gradle b/play-services-base-core/build.gradle index ef8f393b..035dd5a5 100644 --- a/play-services-base-core/build.gradle +++ b/play-services-base-core/build.gradle @@ -31,3 +31,5 @@ android { } apply from: '../gradle/publish-android.gradle' + +description = 'microG service implementation for play-services-base' diff --git a/play-services-base/build.gradle b/play-services-base/build.gradle index 92d371a9..b87841a8 100644 --- a/play-services-base/build.gradle +++ b/play-services-base/build.gradle @@ -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') diff --git a/play-services-basement/build.gradle b/play-services-basement/build.gradle index 56c53a9e..9fb09e1e 100644 --- a/play-services-basement/build.gradle +++ b/play-services-basement/build.gradle @@ -53,3 +53,5 @@ android { } apply from: '../gradle/publish-android.gradle' + +description = 'microG implementation of play-services-basement' diff --git a/play-services-nearby-api/build.gradle b/play-services-nearby-api/build.gradle index 9a567128..903c8331 100644 --- a/play-services-nearby-api/build.gradle +++ b/play-services-nearby-api/build.gradle @@ -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') diff --git a/play-services-nearby-core-proto/build.gradle b/play-services-nearby-core-proto/build.gradle index 49acc5fe..ac8889ee 100644 --- a/play-services-nearby-core-proto/build.gradle +++ b/play-services-nearby-core-proto/build.gradle @@ -25,3 +25,5 @@ compileTestKotlin { } apply from: '../gradle/publish-java.gradle' + +description = 'Protocol buffers for microG implementation of play-services-nearby' diff --git a/play-services-nearby-core-ui/build.gradle b/play-services-nearby-core-ui/build.gradle index df354be7..38c65af0 100644 --- a/play-services-nearby-core-ui/build.gradle +++ b/play-services-nearby-core-ui/build.gradle @@ -64,3 +64,5 @@ android { } apply from: '../gradle/publish-android.gradle' + +description = 'UI for microG service implementation for play-services-nearby' diff --git a/play-services-nearby-core/build.gradle b/play-services-nearby-core/build.gradle index 73cbc1a4..6a0ffb2b 100644 --- a/play-services-nearby-core/build.gradle +++ b/play-services-nearby-core/build.gradle @@ -52,3 +52,5 @@ android { } apply from: '../gradle/publish-android.gradle' + +description = 'microG service implementation for play-services-nearby' diff --git a/play-services-nearby/build.gradle b/play-services-nearby/build.gradle index 5a2a5ded..6d2d5a1f 100644 --- a/play-services-nearby/build.gradle +++ b/play-services-nearby/build.gradle @@ -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') diff --git a/play-services-tasks/build.gradle b/play-services-tasks/build.gradle index c2801c3c..279b8f08 100644 --- a/play-services-tasks/build.gradle +++ b/play-services-tasks/build.gradle @@ -28,3 +28,5 @@ dependencies { } apply from: '../gradle/publish-android.gradle' + +description = 'microG implementation of play-services-tasks'