From 1a02a0dcaa79ad48e7791aadc3c2b371a3c98975 Mon Sep 17 00:00:00 2001 From: Pasqual Koschmieder Date: Thu, 21 Mar 2024 09:05:54 +0100 Subject: [PATCH] build: ensure :processResources runs before :compileJava (#1379) ### Motivation There are some build steps that require resources to be present at compile time. Due to some Gradle magic, the `processResources` task is not always executed before `compileJava`, which leads to failures when f. ex. generating plugin manifests with our annotation processing. ### Modification Require the `processResources` task to run before `compileJava` by adding a dependency. ### Result `processResources` now runs before `compileJava` again, fixing all issues with plugin manifest generation during compile. --- build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 932cc132dd..27cefcca7e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -148,6 +148,10 @@ subprojects { applyDefaultJavadocOptions(options) } + tasks.withType { + dependsOn(tasks.withType()) + } + // all these projects are publishing their java artifacts configurePublishing("java", true) }