Try to add library sources

This commit is contained in:
Chumva 2019-10-11 12:09:26 +03:00
parent f91d8a33ff
commit 254ef218fb

View file

@ -1,7 +1,8 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group='net.OsmAnd.OsmAnd-api'
group = 'net.OsmAnd.OsmAnd-api'
version = '2.0'
android {
compileSdkVersion 27
@ -26,4 +27,18 @@ android {
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
}