Android-Password-Store/build-logic/settings.gradle.kts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.4 KiB
Text
Raw Permalink Normal View History

/*
* Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-only
*/
@file:Suppress("UnstableApiUsage")
rootProject.name = "build-logic"
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" }
dependencyResolutionManagement {
repositories {
google {
content {
includeGroup("androidx.databinding")
includeGroupByRegex("com.android.*")
includeGroup("com.google.testing.platform")
}
}
2022-06-30 16:03:59 +00:00
exclusiveContent {
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() } }
}
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_").lowercase()
println("Overriding $catalogKey with $value")
version(catalogKey, value)
}
}
}
}
}