From 096eb340f4f005ea0748aceb9120c8b93a9f37b2 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sat, 16 Mar 2024 09:12:34 -0600 Subject: [PATCH] Convert build.gradle to build.gradle.kts --- build.gradle | 30 ------------------------------ build.gradle.kts | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) delete mode 100644 build.gradle create mode 100644 build.gradle.kts 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 + } +}