44 lines
No EOL
904 B
Groovy
44 lines
No EOL
904 B
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
group = 'net.OsmAnd.OsmAnd-api'
|
|
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'
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from android.sourceSets.main.java.sourceFiles
|
|
}
|
|
|
|
task classesJar(type: Jar) {
|
|
from "$buildDir/intermediates/classes/release"
|
|
}
|
|
|
|
artifacts {
|
|
archives classesJar
|
|
archives sourcesJar
|
|
} |