diff --git a/settings.gradle b/settings.gradle index f54a7070..e74b7d0a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,30 +1,31 @@ pluginManagement { repositories { - mavenCentral() - google() gradlePluginPortal() + google() + mavenCentral() } } plugins { - id 'com.gradle.enterprise' version '3.16.2' + id 'com.gradle.develocity' version '3.17.2' +} + +develocity { + buildScan { + termsOfUseUrl = 'https://gradle.com/terms-of-service' + termsOfUseAgree = 'yes' + def isCI = System.getenv('CI') != null + publishing.onlyIf { isCI } + } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { - mavenCentral() - google() gradlePluginPortal() - } -} - -gradleEnterprise { - buildScan { - termsOfServiceUrl = 'https://gradle.com/terms-of-service' - termsOfServiceAgree = 'yes' - publishAlways() + google() + mavenCentral() } }