Convert root level Gradle files to Kotlin DSL

This commit is contained in:
arkon 2020-01-28 22:48:02 -05:00
parent 13ea1342fb
commit 2a85bb28b9
3 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // 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 { buildscript {
repositories { repositories {
@ -7,10 +9,9 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.3' 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.github.zellius:android-shortcut-gradle-plugin:0.1.2' classpath("com.google.gms:google-services:4.3.3")
classpath 'com.google.gms:google-services:4.3.3'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
} }
@ -19,7 +20,11 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
google() google()
maven { url "https://www.jitpack.io" } maven { setUrl("https://www.jitpack.io") }
jcenter() jcenter()
} }
} }
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}

View File

@ -1 +0,0 @@
include ':app'

1
settings.gradle.kts Normal file
View File

@ -0,0 +1 @@
include(":app")