Slackbot
07/14/2022, 10:42 AMDenis Bezrukov
07/14/2022, 10:42 AMtasks.named("publish") { task ->
configurations.forEach {conf ->
if (conf.name == "implementation" || conf.name == "api") {
conf.dependencies.findAll { it instanceof ProjectDependency }.forEach { dep ->
task.dependsOn(":${dep.name}:publish")
}
}
}
}
But I wonder if there is built-in way to achieve thisSatyarth Sampath
07/14/2022, 10:48 AMsomeTaskForA
which could then depend on the execution of the same task across multiple projectsFleshgrinder
07/14/2022, 10:48 AM./gradlew --project-dir subproject publish
untestedDenis Bezrukov
07/14/2022, 11:30 AM./gradlew --project-dir subproject publish
no, it only executes publish for subproject, and not for its deps 🤔Denis Bezrukov
07/14/2022, 11:35 AMExecuting tasks between projects would break project isolation though?🤔 it's a single project, and I only need to work with a module's subtree, so it shouldn't break isolation.
Fleshgrinder
07/14/2022, 2:18 PMSatyarth Sampath
07/14/2022, 4:10 PMFleshgrinder
07/14/2022, 4:12 PM