pluginManagement { repositories { google { content { includeGroupByRegex(".*google.*") includeGroupByRegex(".*android.*") } } gradlePluginPortal() } } plugins { id 'com.gradle.enterprise' version '3.16.2' id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0' } def isCI = providers.environmentVariable("CI").isPresent() gradleEnterprise { buildScan { termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceAgree = "yes" publishAlwaysIf(isCI) } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google { content { includeGroupByRegex(".*google.*") includeGroupByRegex(".*android.*") } } mavenCentral() maven { url 'https://jitpack.io' } } } enableFeaturePreview("STABLE_CONFIGURATION_CACHE") include ':app'