add fatJar task
Some checks reported errors
continuous-integration/drone/tag Build was killed

This commit is contained in:
Raffaele Mignone 2020-01-12 19:55:45 +01:00
parent 92b6bc642a
commit 7bc707a443
Signed by: norangebit
GPG Key ID: F5255658CB220573
2 changed files with 5 additions and 2 deletions

View File

@ -54,6 +54,7 @@ steps:
path: /drone/src/out
commands:
- ./gradlew build
- ./gradlew :wrapper:fatJar
- mv /drone/src/wrapper/build/libs/*.jar /drone/src/out/
- mv /drone/src/app/build/outputs/apk/release/*.apk /drone/src/out/

View File

@ -15,8 +15,10 @@ dependencies {
testImplementation("junit:junit:4.12")
}
tasks {
jar {
tasks{
register<Jar>("fatJar") {
archiveClassifier.set("fat")
from(
configurations.compileClasspath
.map { config ->