start using kotlin gradle files

This commit is contained in:
John O'Reilly 2020-02-09 11:42:41 +00:00
parent e5ccdf9241
commit 8185e9b06c
2 changed files with 27 additions and 26 deletions

View file

@ -1,26 +0,0 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:${Versions.androidBuildToolsVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
classpath "org.jetbrains.kotlin:kotlin-serialization:${Versions.kotlin}"
classpath "com.squareup.sqldelight:gradle-plugin:${Versions.sqlDelight}"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

27
build.gradle.kts Normal file
View file

@ -0,0 +1,27 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:${Versions.androidBuildToolsVersion}")
classpath(kotlin("gradle-plugin", version = "${Versions.kotlin}"))
classpath(kotlin("serialization", version = "${Versions.kotlin}"))
classpath("com.squareup.sqldelight:gradle-plugin:${Versions.sqlDelight}")
}
}
allprojects {
repositories {
google()
jcenter()
}
}
tasks.register("clean").configure {
delete("build")
}