OsmAnd/OsmAnd-api/build.gradle

55 lines
1.2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
2019-10-11 10:25:44 +02:00
apply plugin: 'com.github.dcendents.android-maven'
2019-10-11 12:21:53 +02:00
group = 'com.github.osmandapp'
2019-10-11 11:09:26 +02:00
version = '2.0'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 2
versionName "2.0"
}
sourceSets {
main {
manifest.srcFile "AndroidManifest.xml"
aidl.srcDirs = ["src"]
java.srcDirs = ["src"]
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-annotations:27.1.1'
2019-10-11 11:09:26 +02:00
}
task sourcesJar(type: Jar) {
classifier = 'sources'
2019-10-11 13:10:00 +02:00
from android.sourceSets.main.java.srcDirs
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
2019-10-11 11:09:26 +02:00
}
task classesJar(type: Jar) {
from "$buildDir/intermediates/classes/release"
}
artifacts {
archives classesJar
2019-10-11 13:10:00 +02:00
archives javadocJar
2019-10-11 11:09:26 +02:00
archives sourcesJar
}