Gradle: Migrate top-level build files to Kotlin DSL

Migrate the top-level build files to the new Kotlin DSL and use the new
pluginManagement block instead of the old buildscript.
This commit is contained in:
Steffen Winter
2026-05-15 22:08:56 +02:00
parent d33ada370f
commit 5752a2bf96
5 changed files with 48 additions and 38 deletions
+36
View File
@@ -0,0 +1,36 @@
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx\\..*")
}
}
gradlePluginPortal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx\\..*")
}
}
mavenCentral()
maven("https://jitpack.io") {
content {
includeGroupByRegex("com\\.github\\..*")
}
}
}
}
rootProject.name = "Gadgetbridge"
include(":app")
include(":GBDaoGenerator")