This message was deleted.
# community-support
s
This message was deleted.
v
It shouldn't be necessary actually. The init script is applied to both builds automatically.
I just tried it to make sure
r
no it isn't for me
7.5
at least not when using
Copy code
pluginManagement {
    includeBuild 'build-logic'
}
aaah. its not that black and white it seems. it works for parts of the included build. Having this setup:
Copy code
// settings.gradle

pluginManagement {
    includeBuild 'build-logic'
}

rootProject.name = 'release-tools'
Copy code
// build.gradle
tasks.named("check") {
  dependsOn(gradle.includedBuild("build-logic").task(":check"))
}
Copy code
// init script
gradle.taskGraph.whenReady { taskGraph ->
    taskGraph.allTasks.each { Task task ->

        println "INIT SCRIPT CONFIGURING " + task.project.rootProject.name + " :: " + task.path
    }
}
then I get this output: https://scans.gradle.com/s/vpyaw427spwau/console-log?anchor=25
seems like something worth to raise a bug
v
I also tested with 7.5, but I think with a traditional included build, not within
pluginManagement