mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Add support to include source jar files for libraries published by termux
This commit is contained in:
parent
cde0bd2246
commit
3306c3c2a2
3 changed files with 18 additions and 1 deletions
|
|
@ -53,6 +53,10 @@ dependencies {
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task sourceJar(type: Jar) {
|
||||||
|
from android.sourceSets.main.java.srcDirs
|
||||||
|
classifier "sources"
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
@ -60,6 +64,7 @@ publishing {
|
||||||
groupId 'com.termux'
|
groupId 'com.termux'
|
||||||
artifactId 'terminal-emulator'
|
artifactId 'terminal-emulator'
|
||||||
version '0.109'
|
version '0.109'
|
||||||
|
artifact(sourceJar)
|
||||||
artifact("$buildDir/outputs/aar/terminal-emulator-release.aar")
|
artifact("$buildDir/outputs/aar/terminal-emulator-release.aar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,12 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 {
|
publishing {
|
||||||
|
|
@ -38,6 +43,7 @@ publishing {
|
||||||
groupId 'com.termux'
|
groupId 'com.termux'
|
||||||
artifactId 'terminal-view'
|
artifactId 'terminal-view'
|
||||||
version '0.109'
|
version '0.109'
|
||||||
|
artifact(sourceJar)
|
||||||
artifact("$buildDir/outputs/aar/terminal-view-release.aar")
|
artifact("$buildDir/outputs/aar/terminal-view-release.aar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,12 +45,18 @@ dependencies {
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task sourceJar(type: Jar) {
|
||||||
|
from android.sourceSets.main.java.srcDirs
|
||||||
|
classifier "sources"
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
bar(MavenPublication) {
|
bar(MavenPublication) {
|
||||||
groupId 'com.termux'
|
groupId 'com.termux'
|
||||||
artifactId 'termux-shared'
|
artifactId 'termux-shared'
|
||||||
version '0.109'
|
version '0.109'
|
||||||
|
artifact(sourceJar)
|
||||||
artifact("$buildDir/outputs/aar/termux-shared-release.aar")
|
artifact("$buildDir/outputs/aar/termux-shared-release.aar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue