mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Add support to include source jar files for libraries published by termux
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user