From 3e04599fe3b020a6bbf594ff9030bb9afef995f4 Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Sat, 20 Dec 2025 14:25:24 +0100 Subject: [PATCH] Fix compileAll convenience task Moving the task to the conventions plugin fixes the issue that not all compilation tasks were run. --- build.gradle.kts | 8 -------- buildSrc/src/main/kotlin/cel-conventions.gradle.kts | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 687f61ba..b5dc485e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -96,11 +96,3 @@ idea.project.settings { ) } } - -subprojects.forEach { - it.tasks.register("compileAll").configure { - group = "build" - description = "Runs all compilation and jar tasks" - dependsOn(tasks.withType(), tasks.withType()) - } -} diff --git a/buildSrc/src/main/kotlin/cel-conventions.gradle.kts b/buildSrc/src/main/kotlin/cel-conventions.gradle.kts index 97661bd8..97e3465a 100644 --- a/buildSrc/src/main/kotlin/cel-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/cel-conventions.gradle.kts @@ -29,3 +29,9 @@ apply() if (projectDir.resolve("src/test/java").exists()) { nessieConfigureTestTasks() } + +tasks.register("compileAll").configure { + group = "build" + description = "Runs all compilation and jar tasks" + dependsOn(tasks.withType(), tasks.withType()) +}