// The included build that holds this repository's convention plugins. // // Its own settings are deliberately tiny: an included build for build logic should not need the // registry validation, toolchain resolution or plugin management the main build does, and giving it // any of those would make the thing that validates the build depend on the build it validates. dependencyResolutionManagement { repositories { mavenCentral() gradlePluginPortal() } // The main build's version catalog, read as a file rather than inherited — an included build // does not see its parent's catalog. // // This is not the dependency the note above warns against. It reads a table of versions, not the // build those versions configure: nothing here is evaluated, no project is resolved, and the two // coordinates this build actually uses (Spock, JUnit) are the same two the leaves use. Pinning // them separately is how build-logic's Spock and the leaves' Spock would drift apart without // anybody noticing, which is the exact failure the catalog exists to make visible. versionCatalogs { libs { from(files('../gradle/libs.versions.toml')) } } } rootProject.name = 'build-logic'