diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c14c11123..5175c4346 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,6 +9,10 @@ [versions] agp = "7.3.1" +androidx-appcompat = "1.1.0" +androidx-core = "1.3.0" +androidx-test = "1.1.0" +androidx-test-ext = "1.1.1" autoService = "1.1.1" autoValue = "1.10.1" buildconfig = "4.1.2" @@ -51,14 +55,14 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } mavenPublishBase = { id = "com.vanniktech.maven.publish.base", version.ref = "mavenPublish" } [libraries] -androidx-appcompat = "androidx.appcompat:appcompat:1.1.0" -androidx-core = "androidx.core:core-ktx:1.3.0" +androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" } +androidx-core = { module = "androidx.core:core-ktx", version.ref = "androidx-core" } androidx-material = "com.google.android.material:material:1.1.0" -androidx-test-core = "androidx.test:core:1.1.0" +androidx-test-core = { module = "androidx.test:core", version.ref = "androidx-test" } androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" } -androidx-test-junit = "androidx.test.ext:junit:1.1.1" -androidx-test-rules = "androidx.test:rules:1.1.0" -androidx-test-runner = "androidx.test:runner:1.1.0" +androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-ext" } +androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidx-test" } +androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test" } agp = { module = "com.android.tools.build:gradle", version.ref = "agp" } diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..7a767cf05 --- /dev/null +++ b/renovate.json @@ -0,0 +1,31 @@ +{ + "$schema" : "https://docs.renovatebot.com/renovate-schema.json", + "extends" : [ + "config:base" + ], + "rebaseWhen" : "conflicted", + "rebaseLabel" : "rebase", + "packageRules" : [ + { + "groupName" : "Kotlin and compiler plugins", + "matchPackagePatterns" : [ + "^org\\.jetbrains\\.kotlin:", + "^com\\.google\\.devtools\\.ksp:", + "^com\\.square\\.anvil:", + "^dev\\.zacsweers\\.kctfork:" + ] + }, + { + "groupName" : "androidx.test and friends", + "matchPackagePatterns" : [ + "^androidx\\.test:", + "^androidx\\.test\\.ext:", + "^com\\.google\\.truth:", + "^junit:junit:" + ] + } + ], + "labels" : [ + "dependencies" + ] +}