pluginManagement { repositories { google() mavenCentral() gradlePluginPortal() } } dependencyResolutionManagement { versionCatalogs { create("libs") { // Points to the .toml file in your actual project root from(files("../gradle/libs.versions.toml")) } } repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() // The ktlint Gradle plugin publishes its implementation jar only to the // Plugin Portal (org.jlleitschuh.gradle is 404 on Maven Central), unlike // detekt. Scoped to that one group so nothing else resolves through it. gradlePluginPortal { content { includeGroup("org.jlleitschuh.gradle") } } } }