Avoid method references in settings.gradle.kts (#2073)

This commit is contained in:
Harsh Shandilya 2022-08-23 15:21:22 +05:30 committed by GitHub
parent f1115850bf
commit 8113bb18e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ pluginManagement {
repositories { repositories {
includeBuild("build-logic") includeBuild("build-logic")
exclusiveContent { exclusiveContent {
forRepository(::google) forRepository { google() }
filter { filter {
includeGroup("androidx.databinding") includeGroup("androidx.databinding")
includeGroup("com.android") includeGroup("com.android")
@ -36,7 +36,7 @@ pluginManagement {
} }
} }
exclusiveContent { exclusiveContent {
forRepository(::gradlePluginPortal) forRepository { gradlePluginPortal() }
filter { filter {
includeModule("com.github.ben-manes", "gradle-versions-plugin") includeModule("com.github.ben-manes", "gradle-versions-plugin")
includeModule("com.gradle", "gradle-enterprise-gradle-plugin") includeModule("com.gradle", "gradle-enterprise-gradle-plugin")
@ -65,7 +65,7 @@ dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {
exclusiveContent { exclusiveContent {
forRepository(::google) forRepository { google() }
filter { filter {
includeGroup("com.android") includeGroup("com.android")
includeGroup("com.android.tools.analytics-library") includeGroup("com.android.tools.analytics-library")