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"
|
|
|
|
|
2024-01-12 18:36:14 +00:00
|
|
|
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" }
|
2023-05-23 20:23:12 +00:00
|
|
|
|
2021-11-09 16:03:59 +00:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositories {
|
2023-12-17 09:12:40 +00:00
|
|
|
google {
|
|
|
|
content {
|
2022-05-09 07:46:27 +00:00
|
|
|
includeGroup("androidx.databinding")
|
2023-12-17 09:12:40 +00:00
|
|
|
includeGroupByRegex("com.android.*")
|
2022-05-09 07:46:27 +00:00
|
|
|
includeGroup("com.google.testing.platform")
|
|
|
|
}
|
|
|
|
}
|
2022-06-30 16:03:59 +00:00
|
|
|
exclusiveContent {
|
2022-10-21 06:32:23 +00:00
|
|
|
forRepository { gradlePluginPortal() }
|
|
|
|
filter {
|
|
|
|
includeModule("com.github.ben-manes", "gradle-versions-plugin")
|
|
|
|
includeModule("me.tylerbwong.gradle.metalava", "plugin")
|
|
|
|
}
|
2022-06-30 16:03:59 +00:00
|
|
|
}
|
2022-07-07 08:58:45 +00:00
|
|
|
exclusiveContent {
|
|
|
|
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
|
|
|
|
filter { includeModule("com.android.tools", "r8") }
|
|
|
|
}
|
2024-01-08 17:54:09 +00:00
|
|
|
mavenCentral { mavenContent { releasesOnly() } }
|
2021-11-09 16:03:59 +00:00
|
|
|
}
|
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) {
|
2023-03-21 06:03:41 +00:00
|
|
|
val catalogKey = key.removePrefix("DEP_OVERRIDE_").lowercase()
|
2022-06-12 11:01:42 +00:00
|
|
|
println("Overriding $catalogKey with $value")
|
|
|
|
version(catalogKey, value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-09 16:03:59 +00:00
|
|
|
}
|