OsmAnd/OsmAnd-api/build.gradle

68 lines
1.6 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
2021-01-15 13:32:47 +01:00
apply plugin: 'ivy-publish'
2019-10-11 10:25:44 +02:00
apply plugin: 'com.github.dcendents.android-maven'
android {
2020-03-04 15:34:13 +01:00
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 2
versionName "2.0"
}
2019-10-11 15:38:01 +02:00
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile "AndroidManifest.xml"
aidl.srcDirs = ["src"]
java.srcDirs = ["src"]
}
}
}
2021-01-15 13:57:57 +01:00
afterEvaluate {
publishing {
2021-01-15 14:42:50 +01:00
repositories {
ivy {
url = System.getenv("OSMAND_BINARIES_IVY_ROOT") ?: "./"
}
}
2021-01-15 13:57:57 +01:00
publications {
release(IvyPublication) {
// Applies the component for the release build variant.
from components.release
2021-01-15 14:08:03 +01:00
organisation = 'net.osmand'
module = 'android-aidl-lib'
revision = 'master-snapshot'
2021-01-15 13:57:57 +01:00
}
debug(IvyPublication) {
// Applies the component for the release build variant.
from components.debug
2021-01-15 14:08:03 +01:00
organisation = 'net.osmand'
module = 'android-aidl-lib'
revision = 'master-snapshot'
2021-01-15 13:57:57 +01:00
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2020-03-04 15:34:13 +01:00
implementation 'com.android.support:support-annotations:28.0.0'
2019-10-11 16:18:01 +02:00
}
task sourcesJar(type: Jar) {
classifier = 'sources'
2019-10-11 16:30:48 +02:00
from android.sourceSets.main.java.srcDirs
2019-10-11 16:18:01 +02:00
}
artifacts {
archives sourcesJar
2021-01-15 13:32:47 +01:00
}