Loading gradle/publish-android.gradle 0 → 100644 +67 −0 Original line number Diff line number Diff line /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 */ task androidSourcesJar(type: Jar) { archiveClassifier.set("sources") from android.sourceSets.main.java.source } artifacts { archives androidSourcesJar } afterEvaluate { publishing { publications { release(MavenPublication) { pom { name = project.name url = 'https://github.com/microg/GmsCore' licenses { license { name = 'The Apache Software License, Version 2.0' url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } developers { developer { id = 'microg' name = 'microG Team' } developer { id = 'mar-v-in' name = 'Marvin W.' } } scm { url = 'https://github.com/microg/GmsCore' connection = 'scm:git:https://github.com/microg/GmsCore.git' developerConnection = 'scm:git:ssh://github.com/microg/GmsCore.git' } } from components.release artifact androidSourcesJar } } if (project.hasProperty('sonatype.username')) { repositories { maven { name = 'sonatype' url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' credentials { username project.getProperty('sonatype.username') password project.getProperty('sonatype.password') } } } } } if (project.hasProperty('signing.keyId')) { signing { sign publishing.publications } } } gradle/publish-java.gradle 0 → 100644 +57 −0 Original line number Diff line number Diff line /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 */ afterEvaluate { publishing { publications { release(MavenPublication) { pom { name = project.name url = 'https://github.com/microg/GmsCore' licenses { license { name = 'The Apache Software License, Version 2.0' url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } developers { developer { id = 'microg' name = 'microG Team' } developer { id = 'mar-v-in' name = 'Marvin W.' } } scm { url = 'https://github.com/microg/GmsCore' connection = 'scm:git:https://github.com/microg/GmsCore.git' developerConnection = 'scm:git:ssh://github.com/microg/GmsCore.git' } } from components.java } } if (project.hasProperty('sonatype.username')) { repositories { maven { name = 'sonatype' url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' credentials { username project.getProperty('sonatype.username') password project.getProperty('sonatype.password') } } } } } if (project.hasProperty('signing.keyId')) { signing { sign publishing.publications } } } play-services-base-api/build.gradle +4 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ */ apply plugin: 'com.android.library' apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { api project(':play-services-basement') Loading @@ -38,3 +40,5 @@ android { targetCompatibility = 1.8 } } apply from: '../gradle/publish-android.gradle' play-services-base-core-ui/build.gradle +4 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { api project(':play-services-base') Loading Loading @@ -56,3 +58,5 @@ android { targetCompatibility = 1.8 } } apply from: '../gradle/publish-android.gradle' play-services-base-core/build.gradle +4 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ */ apply plugin: 'com.android.library' apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { api project(':play-services-basement') Loading @@ -27,3 +29,5 @@ android { targetCompatibility = 1.8 } } apply from: '../gradle/publish-android.gradle' Loading
gradle/publish-android.gradle 0 → 100644 +67 −0 Original line number Diff line number Diff line /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 */ task androidSourcesJar(type: Jar) { archiveClassifier.set("sources") from android.sourceSets.main.java.source } artifacts { archives androidSourcesJar } afterEvaluate { publishing { publications { release(MavenPublication) { pom { name = project.name url = 'https://github.com/microg/GmsCore' licenses { license { name = 'The Apache Software License, Version 2.0' url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } developers { developer { id = 'microg' name = 'microG Team' } developer { id = 'mar-v-in' name = 'Marvin W.' } } scm { url = 'https://github.com/microg/GmsCore' connection = 'scm:git:https://github.com/microg/GmsCore.git' developerConnection = 'scm:git:ssh://github.com/microg/GmsCore.git' } } from components.release artifact androidSourcesJar } } if (project.hasProperty('sonatype.username')) { repositories { maven { name = 'sonatype' url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' credentials { username project.getProperty('sonatype.username') password project.getProperty('sonatype.password') } } } } } if (project.hasProperty('signing.keyId')) { signing { sign publishing.publications } } }
gradle/publish-java.gradle 0 → 100644 +57 −0 Original line number Diff line number Diff line /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 */ afterEvaluate { publishing { publications { release(MavenPublication) { pom { name = project.name url = 'https://github.com/microg/GmsCore' licenses { license { name = 'The Apache Software License, Version 2.0' url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } developers { developer { id = 'microg' name = 'microG Team' } developer { id = 'mar-v-in' name = 'Marvin W.' } } scm { url = 'https://github.com/microg/GmsCore' connection = 'scm:git:https://github.com/microg/GmsCore.git' developerConnection = 'scm:git:ssh://github.com/microg/GmsCore.git' } } from components.java } } if (project.hasProperty('sonatype.username')) { repositories { maven { name = 'sonatype' url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' credentials { username project.getProperty('sonatype.username') password project.getProperty('sonatype.password') } } } } } if (project.hasProperty('signing.keyId')) { signing { sign publishing.publications } } }
play-services-base-api/build.gradle +4 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ */ apply plugin: 'com.android.library' apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { api project(':play-services-basement') Loading @@ -38,3 +40,5 @@ android { targetCompatibility = 1.8 } } apply from: '../gradle/publish-android.gradle'
play-services-base-core-ui/build.gradle +4 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { api project(':play-services-base') Loading Loading @@ -56,3 +58,5 @@ android { targetCompatibility = 1.8 } } apply from: '../gradle/publish-android.gradle'
play-services-base-core/build.gradle +4 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ */ apply plugin: 'com.android.library' apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { api project(':play-services-basement') Loading @@ -27,3 +29,5 @@ android { targetCompatibility = 1.8 } } apply from: '../gradle/publish-android.gradle'