Skip to content

Commit

Permalink
Fix caching issues in rewrite build (#5095)
Browse files Browse the repository at this point in the history
* Configure Nebula to not add unstable properties

* Apply reproducible-builds plugin to ensure stable JAR
  • Loading branch information
gabrielfeo authored Feb 25, 2025
1 parent 4243f52 commit f7a8fab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rewrite-java-tck/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id("org.openrewrite.build.language-library")
id("org.openrewrite.build.java8-text-blocks")
// Prevent cache misses due to metadata differences inside the JAR
id("org.gradlex.reproducible-builds") version "1.0"
}

dependencies {
Expand All @@ -16,6 +18,14 @@ dependencies {
}
}

infoBroker {
// Prevent cache misses due to unstable attributes, e.g. "Build-Date"
includedManifestProperties = listOf(
"Module-Owner",
"Module-Email",
)
}

tasks.withType<Javadoc> {
isFailOnError = false
exclude("org/openrewrite/java/**")
Expand Down

0 comments on commit f7a8fab

Please sign in to comment.