Try to add library sources
This commit is contained in:
parent
f91d8a33ff
commit
254ef218fb
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
@ -27,3 +28,17 @@ 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
|
||||
}
|
Loading…
Reference in a new issue