Преглед на файлове

Convert root level Gradle files to Kotlin DSL

arkon преди 5 години
родител
ревизия
2a85bb28b9
променени са 3 файла, в които са добавени 12 реда и са изтрити 7 реда
  1. 11 6
      build.gradle.kts
  2. 0 1
      settings.gradle
  3. 1 0
      settings.gradle.kts

+ 11 - 6
build.gradle → 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)
+}

+ 0 - 1
settings.gradle

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

+ 1 - 0
settings.gradle.kts

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