Tighten down dependency resolution (#1903)
This commit is contained in:
parent
58c813ef96
commit
179e7a5044
3 changed files with 55 additions and 18 deletions
|
@ -8,7 +8,23 @@ rootProject.name = "build-logic"
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositories {
|
repositories {
|
||||||
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()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } }
|
versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } }
|
||||||
|
|
|
@ -4,16 +4,6 @@
|
||||||
*/
|
*/
|
||||||
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories {
|
|
||||||
maven("https://storage.googleapis.com/r8-releases/raw") {
|
|
||||||
name = "R8 dev releases"
|
|
||||||
content { includeModule("com.android.tools", "r8") }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dependencies { classpath(libs.build.r8) }
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.github.android-password-store.kotlin-common")
|
id("com.github.android-password-store.kotlin-common")
|
||||||
id("com.github.android-password-store.binary-compatibility")
|
id("com.github.android-password-store.binary-compatibility")
|
||||||
|
|
|
@ -10,24 +10,55 @@ rootProject.name = "APS"
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
includeBuild("build-logic")
|
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()
|
mavenCentral()
|
||||||
gradlePluginPortal()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
exclusiveContent {
|
||||||
google()
|
forRepository(::google)
|
||||||
maven("https://jitpack.io") {
|
filter {
|
||||||
name = "JitPack"
|
includeGroup("com.android")
|
||||||
content {
|
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.haroldadmin", "WhatTheStack")
|
||||||
includeModule("com.github.open-keychain.open-keychain", "sshauthentication-api")
|
includeModule("com.github.open-keychain.open-keychain", "sshauthentication-api")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mavenCentral()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue