diff --git a/src/main/java/io/quarkus/develocity/project/normalization/Normalization.java b/src/main/java/io/quarkus/develocity/project/normalization/Normalization.java index c114cda..f9fb306 100644 --- a/src/main/java/io/quarkus/develocity/project/normalization/Normalization.java +++ b/src/main/java/io/quarkus/develocity/project/normalization/Normalization.java @@ -41,6 +41,12 @@ public static void configureNormalization(BuildCacheApi buildCacheApi) { // Application.properties buildCacheApi.registerNormalizationProvider( context -> context.configureRuntimeClasspathNormalization(c -> { + // we are sharing files between JDKs so we need to ignore content that is version-dependent + // the most important element here is Build-Jdk-Spec, the rest is here to allow reusing caches across branches + // or when the maven-jar-plugin is updated + c.configureMetaInf(metaInf -> metaInf.setIgnoredAttributes("Build-Jdk-Spec", "Created-By", + "Specification-Version", "Implementation-Version")); + c.addIgnoredFiles("META-INF/ide-deps/**"); if (Matchers.module(context, "quarkus-integration-test-rest-client-reactive")) {