Skip to content

Commit

Permalink
fix(jdks): Set explicit Gradle task dependencies
Browse files Browse the repository at this point in the history
Fixes #1586
  • Loading branch information
aalmiray committed Feb 6, 2024
1 parent 06bf27c commit 853d293
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ class JdksPlugin implements Plugin<Project> {
t.description = "Copy JDK ${candidateJdk.name} from cache".toString()
t.inputFile.set(candidateJdk.archive)
t.outputDirectory.set(jdkDirectory)
// Otherwise Gradle 8+ complains about task dependencies
t.dependsOn(copyJdksToCache)
// Not ideal but must nuke the directory to avoid copy errors
t.doFirst { jdkDirectory.get().asFile.deleteDir() }
}
Expand Down

0 comments on commit 853d293

Please sign in to comment.