diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-09 13:16:27 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 07:46:27 +0000 |
commit | 179e7a50441ba96110a9c56eac61329b51a2b2c5 (patch) | |
tree | 1b7a3c139fb5a8f3d612034543cc7d1088cd21f3 /settings.gradle.kts | |
parent | 58c813ef96e9463fb7d30f48e7a57ba20e79ac3f (diff) |
Tighten down dependency resolution (#1903)
Diffstat (limited to 'settings.gradle.kts')
-rw-r--r-- | settings.gradle.kts | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/settings.gradle.kts b/settings.gradle.kts index b002cffc..3c1c1817 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -10,24 +10,55 @@ rootProject.name = "APS" pluginManagement { repositories { includeBuild("build-logic") - google() + exclusiveContent { + forRepository(::google) + filter { + includeGroup("androidx.databinding") + includeGroup("com.android") + includeGroup("com.android.tools") + includeGroup("com.android.tools.analytics-library") + includeGroup("com.android.tools.build") + includeGroup("com.android.tools.build.jetifier") + includeGroup("com.android.databinding") + includeGroup("com.android.tools.ddms") + includeGroup("com.android.tools.layoutlib") + includeGroup("com.android.tools.lint") + includeGroup("com.android.tools.utp") + includeGroup("com.google.testing.platform") + } + } mavenCentral() - gradlePluginPortal() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { - mavenCentral() - google() - maven("https://jitpack.io") { - name = "JitPack" - content { + exclusiveContent { + forRepository(::google) + filter { + includeGroup("com.android") + includeGroup("com.android.tools") + includeGroup("com.android.tools.analytics-library") + includeGroup("com.android.tools.build") + includeGroup("com.android.tools.ddms") + includeGroup("com.android.tools.external.com-intellij") + includeGroup("com.android.tools.external.org-jetbrains") + includeGroup("com.android.tools.layoutlib") + includeGroup("com.android.tools.lint") + includeGroup("com.google.android.gms") + includeModule("com.google.android.material", "material") + includeGroupByRegex("androidx.*") + } + } + exclusiveContent { + forRepository { maven("https://jitpack.io") } + filter { includeModule("com.github.haroldadmin", "WhatTheStack") includeModule("com.github.open-keychain.open-keychain", "sshauthentication-api") } } + mavenCentral() } } |