2021-11-28 20:11:04 +00:00
|
|
|
/*
|
|
|
|
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
*/
|
2022-03-13 12:11:01 +00:00
|
|
|
@file:Suppress("UnstableApiUsage")
|
2021-11-28 20:11:04 +00:00
|
|
|
|
|
|
|
rootProject.name = "build-logic"
|
|
|
|
|
2021-11-09 16:03:59 +00:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositories {
|
2022-05-09 07:46:27 +00:00
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
2021-11-09 16:03:59 +00:00
|
|
|
mavenCentral()
|
|
|
|
}
|
2022-06-12 11:01:42 +00:00
|
|
|
versionCatalogs {
|
|
|
|
maybeCreate("libs").apply {
|
|
|
|
from(files("../gradle/libs.versions.toml"))
|
|
|
|
if (System.getenv("DEP_OVERRIDE") == "true") {
|
|
|
|
val overrides = System.getenv().filterKeys { it.startsWith("DEP_OVERRIDE_") }
|
|
|
|
for ((key, value) in overrides) {
|
|
|
|
val catalogKey = key.removePrefix("DEP_OVERRIDE_").toLowerCase()
|
|
|
|
println("Overriding $catalogKey with $value")
|
|
|
|
version(catalogKey, value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-09 16:03:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
include("android-plugins")
|
|
|
|
|
|
|
|
include("automation-plugins")
|
|
|
|
|
|
|
|
include("kotlin-plugins")
|