Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit a43273b5 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Gradle: add description to poms

parent e84452ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ afterEvaluate {
            release(MavenPublication) {
                pom {
                    name = project.name
                    description = project.description
                    url = 'https://github.com/microg/GmsCore'
                    licenses {
                        license {
+23 −0
Original line number Diff line number Diff line
@@ -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')) {
+2 −0
Original line number Diff line number Diff line
@@ -42,3 +42,5 @@ android {
}

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

description = 'microG API for play-services-base'
+2 −0
Original line number Diff line number Diff line
@@ -60,3 +60,5 @@ android {
}

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

description = 'UI for microG service implementation for play-services-base'
+2 −0
Original line number Diff line number Diff line
@@ -31,3 +31,5 @@ android {
}

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

description = 'microG service implementation for play-services-base'
Loading