From b20823dbb8cc2acd3feb96e968254b606f66fa49 Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Sun, 22 Dec 2024 22:13:37 +0100 Subject: [PATCH] Gradle 8.12 --- .space.kts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.space.kts b/.space.kts index a746aed..06255e1 100644 --- a/.space.kts +++ b/.space.kts @@ -9,18 +9,12 @@ job("Build AGConnect publishing") { startOn { gitPush { enabled = false } } - parameters { - text("GRADLE_TASKS", value = "build", description = "Gradle tasks") { - options("build", "build publish") { - allowMultiple = false - } - } - } container(displayName = "Gradle build", image = "{{ project:DOCKER_IMAGE }}:lts") { env["JB_SPACE_MAVEN_REPO"] = "{{ project:JB_SPACE_MAVEN_REPO }}" - env["GRADLE_TASKS"] = "{{ GRADLE_TASKS }}" - shellScript { - content = "gradle --init-script $mountDir/system/gradle/init.gradle -Dorg.gradle.parallel=false ${'$'}GRADLE_TASKS" + env["GRADLE_USER_HOME"] = "{{ project:GRADLE_USER_HOME }}" + kotlinScript { api -> + api.gradle("build") + api.gradle("publish") } } }