Skip to content

Instantly share code, notes, and snippets.

@pgreze
Created July 7, 2022 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgreze/e16f242fbded1ae6215b87bc811f07f9 to your computer and use it in GitHub Desktop.
Save pgreze/e16f242fbded1ae6215b87bc811f07f9 to your computer and use it in GitHub Desktop.
Gradle multi projects task dependencies
tasks.register("createResources") {
doLast {
println("Create resources")
}
}
afterEvaluate {
tasks.getByName("createResources")
.finalizedBy(":scripts:pushPr")
// > Task with name ':scripts:pushPr' not found in project ':app'.
//tasks.getByName(":scripts:pushPr")
// .dependsOn("createResources")
}
tasks.register("pushPr") {
doLast {
println("Push PR")
}
}
include(":app")
include(":scripts")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment