start using kotlin gradle files
This commit is contained in:
parent
e5ccdf9241
commit
8185e9b06c
2 changed files with 27 additions and 26 deletions
26
build.gradle
26
build.gradle
|
@ -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
27
build.gradle.kts
Normal 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")
|
||||
}
|
||||
|
Loading…
Reference in a new issue