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"
|
|
|
|
|
2023-07-10 22:37:05 +00:00
|
|
|
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.6.0" }
|
2023-05-23 20:23:12 +00:00
|
|
|
|
2021-11-09 16:03:59 +00:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
repositories {
|
2022-05-09 07:46:27 +00:00
|
|
|
exclusiveContent {
|
2022-10-21 06:32:23 +00:00
|
|
|
forRepository { google() }
|
2022-05-09 07:46:27 +00:00
|
|
|
filter {
|
|
|
|
includeGroup("androidx.databinding")
|
|
|
|
includeGroup("com.android")
|
|
|
|
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")
|
2022-07-07 08:58:45 +00:00
|
|
|
includeModule("com.android.tools", "annotations")
|
|
|
|
includeModule("com.android.tools", "common")
|
|
|
|
includeModule("com.android.tools", "desugar_jdk_libs")
|
|
|
|
includeModule("com.android.tools", "desugar_jdk_libs_configuration")
|
|
|
|
includeModule("com.android.tools", "dvlib")
|
2022-07-09 10:16:01 +00:00
|
|
|
includeModule("com.android.tools", "play-sdk-proto")
|
2022-07-07 08:58:45 +00:00
|
|
|
includeModule("com.android.tools", "repository")
|
|
|
|
includeModule("com.android.tools", "sdklib")
|
|
|
|
includeModule("com.android.tools", "sdk-common")
|
2022-10-21 06:32:23 +00:00
|
|
|
includeModule("com.android.tools.metalava", "metalava")
|
2022-05-09 07:46:27 +00:00
|
|
|
}
|
|
|
|
}
|
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") }
|
|
|
|
}
|
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) {
|
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
|
|
|
}
|