Add support to include source jar files for libraries published by termux

This commit is contained in:
agnostic-apollo
2021-04-15 05:01:41 +05:00
parent cde0bd2246
commit 3306c3c2a2
3 changed files with 18 additions and 1 deletions

View File

@@ -45,12 +45,18 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}
publishing {
publications {
bar(MavenPublication) {
groupId 'com.termux'
artifactId 'termux-shared'
version '0.109'
artifact(sourceJar)
artifact("$buildDir/outputs/aar/termux-shared-release.aar")
}
}