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

@@ -29,7 +29,12 @@ android {
}
dependencies {
testImplementation 'junit:junit:4.13.1'
testImplementation 'junit:junit:4.13.2'
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}
publishing {
@@ -38,6 +43,7 @@ publishing {
groupId 'com.termux'
artifactId 'terminal-view'
version '0.109'
artifact(sourceJar)
artifact("$buildDir/outputs/aar/terminal-view-release.aar")
}
}