Migrate from Groovy to Kotlin DSL

This commit is contained in:
Matte23
2020-11-02 09:20:00 +01:00
parent 36ef3125a1
commit 0ae74bb766
9 changed files with 219 additions and 105 deletions

36
build.gradle.kts Normal file
View File

@@ -0,0 +1,36 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath(Config.Plugin.android)
classpath(Config.Plugin.kotlin)
classpath(Config.Plugin.google)
classpath(Config.Plugin.ktlint)
classpath(Config.Plugin.aboutLibraries)
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url = uri("https://jitpack.io")
}
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}