Skip to content

Commit 9388a20

Browse files
authored
Fix compileAll convenience task (#780)
Moving the task to the conventions plugin fixes the issue that not all compilation tasks were run.
1 parent 2b0e064 commit 9388a20

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,3 @@ idea.project.settings {
9696
)
9797
}
9898
}
99-
100-
subprojects.forEach {
101-
it.tasks.register("compileAll").configure {
102-
group = "build"
103-
description = "Runs all compilation and jar tasks"
104-
dependsOn(tasks.withType<AbstractCompile>(), tasks.withType<ProcessResources>())
105-
}
106-
}

buildSrc/src/main/kotlin/cel-conventions.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ apply<CelCodeCoveragePlugin>()
2929
if (projectDir.resolve("src/test/java").exists()) {
3030
nessieConfigureTestTasks()
3131
}
32+
33+
tasks.register("compileAll").configure {
34+
group = "build"
35+
description = "Runs all compilation and jar tasks"
36+
dependsOn(tasks.withType<AbstractCompile>(), tasks.withType<ProcessResources>())
37+
}

0 commit comments

Comments
 (0)