Created
July 7, 2022 07:42
-
-
Save pgreze/e16f242fbded1ae6215b87bc811f07f9 to your computer and use it in GitHub Desktop.
Gradle multi projects task dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.register("pushPr") { | |
doLast { | |
println("Push PR") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include(":app") | |
include(":scripts") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment