Move publishing code to included file
This commit is contained in:
parent
7aa18fa570
commit
7adcb7771b
|
@ -23,60 +23,7 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp API'
|
||||
description = 'API interfaces and helpers to create backends for UnifiedNlp'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
description = 'API interfaces and helpers to create backends for UnifiedNlp'
|
||||
|
|
|
@ -29,66 +29,12 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp client library'
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion"
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp Client'
|
||||
description = 'UnifiedNlp client library'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,65 +23,12 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service to implement Geocode API v1'
|
||||
|
||||
dependencies {
|
||||
implementation project(':client')
|
||||
compileOnly project(':compat')
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp Geocode v1'
|
||||
description = 'UnifiedNlp service to implement Geocode API v1'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* 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/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -23,65 +23,12 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service to implement Location API v2'
|
||||
|
||||
dependencies {
|
||||
implementation project(':client')
|
||||
compileOnly project(':compat')
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp Location v2'
|
||||
description = 'UnifiedNlp service to implement Location API v2'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,65 +23,11 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service to implement Location API v3'
|
||||
|
||||
dependencies {
|
||||
implementation project(':location-v2')
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp Location v3'
|
||||
description = 'UnifiedNlp service to implement Location API v3'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -30,7 +30,10 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service library'
|
||||
|
||||
dependencies {
|
||||
implementation project(':api')
|
||||
|
@ -40,59 +43,3 @@ dependencies {
|
|||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"
|
||||
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp Service'
|
||||
description = 'UnifiedNlp service library'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,10 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: "../gradle/androidJars.gradle"
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp UI library for common configuration fragments'
|
||||
|
||||
dependencies {
|
||||
implementation project(':api')
|
||||
|
@ -69,59 +72,3 @@ dependencies {
|
|||
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
|
||||
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = 'UnifiedNlp UI'
|
||||
description = 'UnifiedNlp UI library for common configuration fragments'
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
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/UnifiedNlp'
|
||||
connection = 'scm:git:https://github.com/microg/UnifiedNlp.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/UnifiedNlp.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
artifact androidSourcesJar
|
||||
artifact androidJavadocsJar
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue