From d0fee0e70af1444d5a56fcc49c60ccb6b3d5cb01 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 19 Apr 2024 10:36:21 +0200 Subject: [PATCH] Downgrade kotlin to fix compilation This fixes the java.util.ConcurrentModificationException error. It also reverts earlier tries to fix this. Hopefully finally fixes compilation on F-Droid. --- build.gradle.kts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d3ab883b1..4273aa9fb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ import org.jetbrains.gradle.ext.taskTriggers plugins { id("com.android.application") version "8.3.1" apply false id("com.android.library") version "8.3.1" apply false - id("org.jetbrains.kotlin.android") version "1.9.23" apply false + id("org.jetbrains.kotlin.android") version "1.9.10" apply false id("org.ec4j.editorconfig") version "0.1.0" apply false id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.7" apply true } @@ -27,7 +27,7 @@ configure(externalProjects) { } } -task("aarGen") { +tasks.register("aarGen") { description = "Generates AAR from the external projects for Etar-Calendar" val aarTasks = arrayOf( ":external:calendar:copyAAR", @@ -40,12 +40,12 @@ task("aarGen") { idea.project.settings { taskTriggers { - afterSync(tasks.getByName("aarGen")) + afterSync(tasks.named("aarGen")) } } // External project configuration end -task("clean") { - delete(rootProject.buildDir) +tasks.register("clean") { + delete(rootProject.layout.buildDirectory) delete("app/libs") }