diff --git a/build.gradle b/build.gradle deleted file mode 100644 index fb5ef06..0000000 --- a/build.gradle +++ /dev/null @@ -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 -} diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..0d7e493 --- /dev/null +++ b/build.gradle.kts @@ -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 { + sourceCompatibility = javaVersion.majorVersion + targetCompatibility = javaVersion.majorVersion + } + tasks.withType { + kotlinOptions.jvmTarget = javaVersion.majorVersion + } +}