build-logic: configure repositories to include Google Maven

This commit is contained in:
Harsh Shandilya
2021-11-29 01:41:04 +05:30
parent 1ade4eaf64
commit 553a9e8492
2 changed files with 30 additions and 32 deletions

View File

@@ -1,10 +1,11 @@
pluginManagement { /*
repositories { * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
google() * SPDX-License-Identifier: GPL-3.0-only
mavenCentral() */
gradlePluginPortal()
} rootProject.name = "build-logic"
}
enableFeaturePreview("VERSION_CATALOGS")
dependencyResolutionManagement { dependencyResolutionManagement {
repositories { repositories {
@@ -14,10 +15,6 @@ dependencyResolutionManagement {
versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } } versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } }
} }
rootProject.name = "build-logic"
enableFeaturePreview("VERSION_CATALOGS")
include("android-plugins") include("android-plugins")
include("automation-plugins") include("automation-plugins")

View File

@@ -3,33 +3,14 @@
* SPDX-License-Identifier: GPL-3.0-only * SPDX-License-Identifier: GPL-3.0-only
*/ */
// Modules
include(":app")
include(":autofill-parser")
include(":crypto-common")
include(":crypto-pgpainless")
include(":format-common")
include(":openpgp-ktx")
include(":dependency-sync")
// Experimental features
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("VERSION_CATALOGS")
// Plugin repositories // Plugin repositories
pluginManagement { pluginManagement {
repositories { repositories {
includeBuild("build-logic")
google()
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
} }
includeBuild("build-logic")
} }
dependencyResolutionManagement { dependencyResolutionManagement {
@@ -46,3 +27,23 @@ dependencyResolutionManagement {
} }
} }
} }
// Experimental features
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("VERSION_CATALOGS")
// Modules
include("app")
include("autofill-parser")
include("crypto-common")
include("crypto-pgpainless")
include("format-common")
include("openpgp-ktx")
include(":dependency-sync")