Skip to content

Commit

Permalink
Fix support for configuration cache in Gradle < 8.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipDolnik committed Jun 3, 2024
1 parent a048e63 commit 70ea573
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ abstract class CreateSkieConfigurationTask : DefaultTask() {
dependsOn(target.createSkieBuildDirectoryTask)
}

val createConfigurationOutputs = createConfiguration.map { it.outputs.files }

target.task.configure {
inputs.files(createConfiguration)
// Needed because of a bug in the configuration cache prior to Gradle 8.3
// TODO Replace once we set the minimum required Gradle version >= 8.3 which will happen once we drop support for Kotlin 1.9.x
inputs.files(createConfigurationOutputs)
dependsOn(createConfiguration)
// With:
// inputs.files(createConfiguration)
}
}
}
Expand Down

0 comments on commit 70ea573

Please sign in to comment.