fix(build): tweak repository settings

This commit is contained in:
Harsh Shandilya 2024-01-08 23:24:09 +05:30 committed by GitHub
parent 30e3b1656c
commit e58151e971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -28,7 +28,7 @@ dependencyResolutionManagement {
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
filter { includeModule("com.android.tools", "r8") }
}
mavenCentral()
mavenCentral { mavenContent { releasesOnly() } }
}
versionCatalogs {
maybeCreate("libs").apply {

View file

@ -35,7 +35,7 @@ pluginManagement {
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
filter { includeModule("com.android.tools", "r8") }
}
mavenCentral()
mavenCentral { mavenContent { releasesOnly() } }
}
}
@ -56,9 +56,8 @@ gradleEnterprise {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
exclusiveContent {
forRepository { google() }
filter {
google {
content {
includeGroupByRegex("androidx.*")
includeGroupByRegex("com.android.*")
includeGroup("com.google.android.gms")
@ -73,7 +72,7 @@ dependencyResolutionManagement {
name = "Compose Compiler Snapshots"
content { includeGroup("androidx.compose.compiler") }
}
mavenCentral()
mavenCentral { mavenContent { releasesOnly() } }
}
}