diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2024-01-08 23:24:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 23:24:09 +0530 |
commit | e58151e97117aa1f344d355086edd62f89744e7c (patch) | |
tree | e6cfb4195fe0fce83bd1e55e308d8f23342ee46c | |
parent | 30e3b1656ce79d2e1e624bfbc74b033fc82ac248 (diff) |
fix(build): tweak repository settings
-rw-r--r-- | build-logic/settings.gradle.kts | 2 | ||||
-rw-r--r-- | settings.gradle.kts | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/build-logic/settings.gradle.kts b/build-logic/settings.gradle.kts index 02dd079d..46c3579e 100644 --- a/build-logic/settings.gradle.kts +++ b/build-logic/settings.gradle.kts @@ -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 { diff --git a/settings.gradle.kts b/settings.gradle.kts index 8f471d78..21d3554a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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() } } } } |