Skip to content

Commit

Permalink
Avoid version-dependent entries in META-INF/MANIFEST.MF
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jul 3, 2024
1 parent b876ec2 commit 321c845
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 321c845

Please sign in to comment.