add dependsOn to avoid warnings

This commit is contained in:
afischerdev 2023-03-15 19:23:23 +01:00
parent 1925cbecab
commit 8a7e973bda
2 changed files with 6 additions and 2 deletions

View file

@ -102,6 +102,10 @@ dependencies {
androidTestImplementation 'androidx.work:work-testing:2.8.0' androidTestImplementation 'androidx.work:work-testing:2.8.0'
} }
gradle.projectsEvaluated {
preBuild.dependsOn(generateProfilesZip, generateReadmesZip)
}
check.dependsOn 'checkstyle' check.dependsOn 'checkstyle'
task checkstyle(type: Checkstyle) { task checkstyle(type: Checkstyle) {

View file

@ -13,7 +13,7 @@ application {
attributes "Main-Class": getMainClass(), "Implementation-Version": project.version attributes "Main-Class": getMainClass(), "Implementation-Version": project.version
} }
} }
task fatJar(type: Jar) { task fatJar(type: Jar) {
archiveFileName = 'brouter-' + project.version + '-all.jar' archiveFileName = 'brouter-' + project.version + '-all.jar'
@ -34,7 +34,7 @@ application {
} }
distZip { distZip {
dependsOn fatJar dependsOn fatJar, ':brouter-routing-app:packageRelease'
archiveFileName = 'brouter-' + project.version + '.zip' archiveFileName = 'brouter-' + project.version + '.zip'
} }