Convert build.gradle to build.gradle.kts
This commit is contained in:
parent
b5f8573f75
commit
096eb340f4
2 changed files with 29 additions and 30 deletions
30
build.gradle
30
build.gradle
|
@ -1,30 +0,0 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.compose = '1.3.1'
|
||||
ext.dagger = '2.44'
|
||||
ext.hyperion = '0.9.33'
|
||||
ext.kotlin_version = '1.7.20'
|
||||
ext.lifecycle_version = "2.2.0"
|
||||
ext.moshi = '1.12.0'
|
||||
ext.retrofit = '2.6.0'
|
||||
ext.room_version = "2.2.5"
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath libs.bundles.plugins
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
29
build.gradle.kts
Normal file
29
build.gradle.kts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath(libs.bundles.plugins)
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
val javaVersion = JavaVersion.VERSION_17
|
||||
ext["jvm"] = javaVersion
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
sourceCompatibility = javaVersion.majorVersion
|
||||
targetCompatibility = javaVersion.majorVersion
|
||||
}
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = javaVersion.majorVersion
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue