Skip to content

Commit

Permalink
fix compileJdk9mainJava task dependencies
Browse files Browse the repository at this point in the history
This task depends on the compiled output of the `compileJava` task, so we should explicitly declare this dependency. Otherwise, if you just run `compileJdk9mainJava` on a clean build it breaks.

Signed-off-by: Peter Gafert <[email protected]>
  • Loading branch information
codecholeric committed Feb 24, 2022
1 parent db63a57 commit 2628803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archunit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ dependencies {
runtimeOnly sourceSets.jdk9main.output
}

compileJdk9mainJava.with {
compileJdk9mainJava {
dependsOn(compileJava)
ext.minimumJavaVersion = JavaVersion.VERSION_1_9

destinationDir = compileJava.destinationDir
Expand Down

0 comments on commit 2628803

Please sign in to comment.