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
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 30 additions and 32 deletions

View file

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

View file

@ -3,33 +3,14 @@
* 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
pluginManagement {
repositories {
includeBuild("build-logic")
google()
mavenCentral()
gradlePluginPortal()
}
includeBuild("build-logic")
}
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")