diff --git a/build.gradle b/build.gradle.kts similarity index 55% rename from build.gradle rename to build.gradle.kts index a67e9cd2..2aa97e95 100644 --- a/build.gradle +++ b/build.gradle.kts @@ -1,32 +1,27 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext { + extra.apply { // Cannot be called "ndkVersion" as that leads to naming collision // Changes to this value must be reflected in `./docker/Dockerfile` - ndkVersionShared = '25.2.9519653' + set("ndkVersionShared", "25.2.9519653") + } + repositories { + gradlePluginPortal() google() - jcenter() + mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.3.1' - classpath 'com.github.ben-manes:gradle-versions-plugin:0.36.0' + classpath("com.android.tools.build:gradle:7.3.1") + classpath("com.github.ben-manes:gradle-versions-plugin:0.36.0") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } -allprojects { - repositories { - google() - jcenter() - maven { url = "https://jitpack.io" } - } -} - -task clean(type: Delete) { - delete rootProject.buildDir +tasks.register("clean") { + delete(rootProject.buildDir) } diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index ff55c794..00000000 --- a/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':app', ':syncthing' diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 00000000..d25fb71a --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,21 @@ +pluginManagement { + repositories { + gradlePluginPortal() + google() + mavenCentral() + } +} + +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + maven { url = java.net.URI("https://jitpack.io") } + } +} + +include( + ":app", + ":syncthing" +)