From cab3167c8fe97b393fa9bd8483ed67e8b882216e Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Thu, 3 Oct 2024 08:53:49 -0400 Subject: [PATCH] Fix japicmp configuration by treating abstract-to-default method changes as non-breaking Signed-off-by: Andriy Redko --- server/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/build.gradle b/server/build.gradle index 0cd2c6d1848d9..48883974cd9cb 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -443,6 +443,8 @@ tasks.named("sourcesJar").configure { /** Compares the current build against a laltest released version or the version supplied through 'japicmp.compare.version' system property */ tasks.register("japicmp", me.champeau.gradle.japicmp.JapicmpTask) { logger.info("Comparing public APIs from ${version} to ${japicmpCompareTarget}") + // See please https://github.com/siom79/japicmp/issues/201 + compatibilityChangeExcludes = [ "METHOD_ABSTRACT_NOW_DEFAULT" ] oldClasspath.from(files("${buildDir}/japicmp-target/opensearch-${japicmpCompareTarget}.jar")) newClasspath.from(tasks.named('jar')) onlyModified = true