From 2a85bb28b9c9a7c3ab7b4fb0aae61f69b1f2c42f Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 28 Jan 2020 22:48:02 -0500 Subject: [PATCH] Convert root level Gradle files to Kotlin DSL --- build.gradle => build.gradle.kts | 17 +++++++++++------ settings.gradle | 1 - settings.gradle.kts | 1 + 3 files changed, 12 insertions(+), 7 deletions(-) rename build.gradle => build.gradle.kts (51%) delete mode 100644 settings.gradle create mode 100644 settings.gradle.kts diff --git a/build.gradle b/build.gradle.kts similarity index 51% rename from build.gradle rename to build.gradle.kts index 65628f0881..793e7cba85 100644 --- a/build.gradle +++ b/build.gradle.kts @@ -1,5 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. -apply plugin: 'com.github.ben-manes.versions' +plugins { + id("com.github.ben-manes.versions") version "0.27.0" +} buildscript { repositories { @@ -7,10 +9,9 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' - classpath 'com.github.ben-manes:gradle-versions-plugin:0.22.0' - classpath 'com.github.zellius:android-shortcut-gradle-plugin:0.1.2' - classpath 'com.google.gms:google-services:4.3.3' + classpath("com.android.tools.build:gradle:3.5.3") + classpath("com.github.zellius:android-shortcut-gradle-plugin:0.1.2") + classpath("com.google.gms:google-services:4.3.3") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -19,7 +20,11 @@ buildscript { allprojects { repositories { google() - maven { url "https://www.jitpack.io" } + maven { setUrl("https://www.jitpack.io") } jcenter() } } + +tasks.register("clean", Delete::class) { + delete(rootProject.buildDir) +} diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index e7b4def49c..0000000000 --- a/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':app' diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000000..15a801b10a --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1 @@ +include(":app")