Gradle: merge publishing code in single file
This commit is contained in:
parent
14ed8c7ce3
commit
4c3a535e1f
|
@ -23,7 +23,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'API interfaces and helpers to create backends for UnifiedNlp'
|
||||
|
|
|
@ -29,7 +29,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp client library'
|
||||
|
|
|
@ -23,7 +23,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service to implement Geocode API v1'
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
task androidSourcesJar(type: Jar) {
|
||||
classifier = 'sources'
|
||||
from android.sourceSets.main.java.source
|
||||
}
|
||||
|
||||
task androidJavadocs(type: Javadoc) {
|
||||
source = android.sourceSets.main.java.srcDirs
|
||||
excludes = ["**/*.aidl", "**/*.kt"]
|
||||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
||||
classpath += configurations.compile
|
||||
if (JavaVersion.current().isJava8Compatible()) {
|
||||
allprojects {
|
||||
tasks.withType(Javadoc) {
|
||||
options.addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
|
||||
classifier = 'javadoc'
|
||||
from androidJavadocs.destinationDir
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives androidSourcesJar
|
||||
archives androidJavadocsJar
|
||||
}
|
|
@ -3,12 +3,42 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
task androidSourcesJar(type: Jar) {
|
||||
classifier = 'sources'
|
||||
from android.sourceSets.main.java.source
|
||||
}
|
||||
|
||||
task androidJavadocs(type: Javadoc) {
|
||||
source = android.sourceSets.main.java.srcDirs
|
||||
excludes = ["**/*.aidl", "**/*.kt"]
|
||||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
||||
classpath += configurations.compile
|
||||
if (JavaVersion.current().isJava8Compatible()) {
|
||||
allprojects {
|
||||
tasks.withType(Javadoc) {
|
||||
options.addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
|
||||
classifier = 'javadoc'
|
||||
from androidJavadocs.destinationDir
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives androidSourcesJar
|
||||
archives androidJavadocsJar
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = project.name
|
||||
description = project.description
|
||||
url = 'https://github.com/microg/UnifiedNlp'
|
||||
licenses {
|
||||
license {
|
||||
|
|
|
@ -23,7 +23,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service to implement Location API v2'
|
||||
|
|
|
@ -23,7 +23,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service to implement Location API v3'
|
||||
|
|
|
@ -30,7 +30,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp service library'
|
||||
|
|
|
@ -42,7 +42,6 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
apply from: '../gradle/androidJars.gradle'
|
||||
apply from: '../gradle/publish.gradle'
|
||||
|
||||
description = 'UnifiedNlp UI library for common configuration fragments'
|
||||
|
|
Loading…
Reference in New Issue