From 19a4e7c0f5cdcdd6d611c64f38ca452b0ea16979 Mon Sep 17 00:00:00 2001 From: Rahul Behera Date: Sat, 20 Jul 2024 08:09:23 -0700 Subject: [PATCH 1/5] attempt to fix java class version issues --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9e2871a..31cc549 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,7 +30,7 @@ repositories { } kotlin { - jvmToolchain(19) + jvmToolchain(8) androidTarget { publishLibraryVariants("release") } From f3093192f3362a93979aac43701cc5ada969dfb2 Mon Sep 17 00:00:00 2001 From: Rahul Behera Date: Sat, 20 Jul 2024 09:13:24 -0700 Subject: [PATCH 2/5] lower to jdk 8 --- build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 31cc549..d9812ca 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,11 +30,16 @@ repositories { } kotlin { - jvmToolchain(8) + compilerOptions { + apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0) + } androidTarget { publishLibraryVariants("release") + compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) + } + jvm { + compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) } - jvm() js { moduleName = "buffer-kt" browser() From 8cbb645637c5c12cd3e1b597731daeac450bcd94 Mon Sep 17 00:00:00 2001 From: Rahul Behera Date: Sat, 20 Jul 2024 09:14:02 -0700 Subject: [PATCH 3/5] no message --- build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index d9812ca..2054a99 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ import groovy.util.Node import groovy.xml.XmlParser import org.apache.tools.ant.taskdefs.condition.Os +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import java.net.URL plugins { @@ -259,3 +260,14 @@ val signingTasks = tasks.withType() tasks.withType().configureEach { dependsOn(signingTasks) } + +tasks.withType { + kotlinOptions { + jvmTarget = "1.8" + } +} + +tasks.withType { + sourceCompatibility = "1.8" + targetCompatibility = "1.8" +} \ No newline at end of file From c679d3af5b3ef77f031afd773796e77f7c7e175c Mon Sep 17 00:00:00 2001 From: Rahul Behera Date: Sat, 20 Jul 2024 09:23:23 -0700 Subject: [PATCH 4/5] clean up unnecessary stuff --- build.gradle.kts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2054a99..436b6f5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,9 +31,6 @@ repositories { } kotlin { - compilerOptions { - apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0) - } androidTarget { publishLibraryVariants("release") compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8) @@ -259,15 +256,4 @@ tasks.create("nextVersion") { val signingTasks = tasks.withType() tasks.withType().configureEach { dependsOn(signingTasks) -} - -tasks.withType { - kotlinOptions { - jvmTarget = "1.8" - } -} - -tasks.withType { - sourceCompatibility = "1.8" - targetCompatibility = "1.8" } \ No newline at end of file From 3eaa23e4329e4a268e08bd2f65594e99999eeb1c Mon Sep 17 00:00:00 2001 From: Rahul Behera Date: Sat, 20 Jul 2024 09:23:56 -0700 Subject: [PATCH 5/5] add back whitespace --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 436b6f5..2138eb9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -256,4 +256,4 @@ tasks.create("nextVersion") { val signingTasks = tasks.withType() tasks.withType().configureEach { dependsOn(signingTasks) -} \ No newline at end of file +}