pluginManagement { repositories { mavenCentral() gradlePluginPortal() maven { url 'https://repo.spring.io/snapshot' } } resolutionStrategy { eachPlugin { if (requested.id.id == 'io.spring.javaformat') { useModule "io.spring.javaformat:spring-javaformat-gradle-plugin:${requested.version}" } } } } apply from: new File(settingsDir, '../gradle/build-cache-settings.gradle')