Start to group project side dependencies

Use this grouping to bump minor agp version.
Dependencies of core artifacts are still grouped into gradle/plugin/src/main/kotlin/versionsConfig.kt.
This commit is contained in:
Vincent Brison 2021-09-06 12:40:36 +02:00
parent c78f437ee5
commit ee77152027
5 changed files with 17 additions and 4 deletions

View File

@ -42,13 +42,12 @@ buildscript {
dependencies {
val kotlinVersion = "1.5.30" // Aug 23, 2021
val dokkaVersion = "1.4.10.2" // Oct 20, 2020
val agpVersion = "7.0.1" // Aug 18, 2021
val hiltVersion = "2.38.1" // Jul 27, 2021
classpath(kotlin("gradle-plugin", kotlinVersion))
classpath(kotlin("serialization", kotlinVersion))
classpath("org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion")
classpath("com.android.tools.build:gradle:$agpVersion")
classpath(libs.android.pluginGradle)
classpath("com.google.dagger:hilt-android-gradle-plugin:$hiltVersion")
}
}

View File

@ -0,0 +1,2 @@
[libraries]
android-pluginGradle = "com.android.tools.build:gradle:7.0.2"

View File

@ -41,9 +41,8 @@ repositories {
dependencies {
val easyGradle = "2.7" // Oct 15, 2020
val agpVersion = "7.0.1" // Aug 18, 2021
implementation(gradleApi())
compileOnly("com.android.tools.build:gradle:$agpVersion")
compileOnly(libs.android.pluginGradle)
api("studio.forface.easygradle:dsl-android:$easyGradle")
}

View File

@ -27,3 +27,14 @@ pluginManagement {
maven("https://plugins.gradle.org/m2/")
}
}
enableFeaturePreview("VERSION_CATALOGS")
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("./libs.versions.toml"))
}
}
}

View File

@ -85,3 +85,5 @@ fun File.projectsAndModules(): Pair<Set<String>, Set<String>> {
val formattedProjects = projects.map { it.replace(":", "/") }.toSet()
return formattedProjects to modules
}
enableFeaturePreview("VERSION_CATALOGS")