Try to add library sources
This commit is contained in:
parent
f91d8a33ff
commit
254ef218fb
1 changed files with 16 additions and 1 deletions
|
@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
|
||||||
apply plugin: 'com.github.dcendents.android-maven'
|
apply plugin: 'com.github.dcendents.android-maven'
|
||||||
|
|
||||||
group = 'net.OsmAnd.OsmAnd-api'
|
group = 'net.OsmAnd.OsmAnd-api'
|
||||||
|
version = '2.0'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 27
|
compileSdkVersion 27
|
||||||
|
@ -27,3 +28,17 @@ dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation 'com.android.support:support-annotations:27.1.1'
|
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
|
||||||
|
}
|
Loading…
Reference in a new issue