88 lines
2.6 KiB
Groovy
88 lines
2.6 KiB
Groovy
/*
|
|
* SPDX-FileCopyrightText: 2019, microG Project Team
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
apply plugin: 'com.android.library'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'signing'
|
|
|
|
android {
|
|
compileSdkVersion androidCompileSdk
|
|
buildToolsVersion "$androidBuildVersionTools"
|
|
|
|
defaultConfig {
|
|
versionName version
|
|
minSdkVersion androidMinSdk
|
|
targetSdkVersion androidTargetSdk
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
}
|
|
}
|
|
|
|
apply from: "../gradle/androidJars.gradle"
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
}
|