Build: add explicit dependency
https://docs.gradle.org/7.1.1/userguide/validation_problems.html#implicit_dependency
This commit is contained in:
parent
0ef781a693
commit
a104684126
|
|
@ -52,8 +52,6 @@ task clean(type: Delete) {
|
||||||
["Debug", "Release"].each { variant ->
|
["Debug", "Release"].each { variant ->
|
||||||
tasks.register("build$variant") {
|
tasks.register("build$variant") {
|
||||||
description("Build LSPatch with $variant")
|
description("Build LSPatch with $variant")
|
||||||
dependsOn tasks.getByPath(":app:copy$variant")
|
dependsOn tasks.getByPath(":patch:build$variant")
|
||||||
dependsOn tasks.getByPath(":appstub:copy$variant")
|
|
||||||
dependsOn tasks.getByPath(":patch:build")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,18 @@ jar {
|
||||||
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF', 'META-INF/*.txt'
|
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF', 'META-INF/*.txt'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register("buildDebug") {
|
||||||
|
jar.dependsOn(':appstub:copyDebug')
|
||||||
|
jar.dependsOn(':app:copyDebug')
|
||||||
|
dependsOn(build)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("buildRelease") {
|
||||||
|
jar.dependsOn(':appstub:copyRelease')
|
||||||
|
jar.dependsOn(':app:copyRelease')
|
||||||
|
dependsOn(build)
|
||||||
|
}
|
||||||
|
|
||||||
tasks.build.doLast {
|
tasks.build.doLast {
|
||||||
println("Build to " + jar.archivePath)
|
println("Build to " + jar.archivePath)
|
||||||
println("Try \'java -jar " + jar.archiveName + "\' find more help")
|
println("Try \'java -jar " + jar.archiveName + "\' find more help")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue