From 38fdc572e2f882b2ac75be98fc24efe256df4f42 Mon Sep 17 00:00:00 2001 From: Atick Faisal <atickfaisal@gmail.com> Date: Wed, 31 Jul 2024 05:45:09 +0600 Subject: [PATCH] Fix deprecated develocity plugins --- settings.gradle.kts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index c0c8d8702..7cd42ab5f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -17,7 +17,13 @@ pluginManagement { includeBuild("build-logic") repositories { - google() + google { + content { + includeGroupByRegex("com\\.android.*") + includeGroupByRegex("com\\.google.*") + includeGroupByRegex("androidx.*") + } + } mavenCentral() gradlePluginPortal() } @@ -32,16 +38,14 @@ dependencyResolutionManagement { } plugins { - id("com.gradle.enterprise") version ("3.17.6") + id("com.gradle.develocity") version ("3.17.6") } -gradleEnterprise { +develocity { if (System.getenv("CI") != null) { - buildScan { - publishAlways() - termsOfServiceUrl = "https://gradle.com/terms-of-service" - termsOfServiceAgree = "yes" - } + server.set("https://develocity-samples.gradle.com") + buildScan.termsOfUseUrl = "https://gradle.com/terms-of-service" + buildScan.termsOfUseAgree = "yes" } }