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 path: /drone/src/out
commands: commands:
- ./gradlew build - ./gradlew build
- ./gradlew :wrapper:fatJar
- mv /drone/src/wrapper/build/libs/*.jar /drone/src/out/ - mv /drone/src/wrapper/build/libs/*.jar /drone/src/out/
- mv /drone/src/app/build/outputs/apk/release/*.apk /drone/src/out/ - mv /drone/src/app/build/outputs/apk/release/*.apk /drone/src/out/

View File

@ -16,7 +16,9 @@ dependencies {
} }
tasks{ tasks{
jar { register<Jar>("fatJar") {
archiveClassifier.set("fat")
from( from(
configurations.compileClasspath configurations.compileClasspath
.map { config -> .map { config ->