Skip to content

Commit 1a02a0d

Browse files
authored
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.
1 parent 7f8f63e commit 1a02a0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ subprojects {
148148
applyDefaultJavadocOptions(options)
149149
}
150150

151+
tasks.withType<JavaCompile> {
152+
dependsOn(tasks.withType<ProcessResources>())
153+
}
154+
151155
// all these projects are publishing their java artifacts
152156
configurePublishing("java", true)
153157
}

0 commit comments

Comments
 (0)