Skip to content

Commit f9e0c85

Browse files
authored
Fix japicmp configuration by treating abstract-to-default method changes as non-breaking (#16181)
Signed-off-by: Andriy Redko <[email protected]>
1 parent d1fd47c commit f9e0c85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ tasks.named("sourcesJar").configure {
407407
/** Compares the current build against a laltest released version or the version supplied through 'japicmp.compare.version' system property */
408408
tasks.register("japicmp", me.champeau.gradle.japicmp.JapicmpTask) {
409409
logger.info("Comparing public APIs from ${version} to ${japicmpCompareTarget}")
410+
// See please https://github.com/siom79/japicmp/issues/201
411+
compatibilityChangeExcludes = [ "METHOD_ABSTRACT_NOW_DEFAULT" ]
410412
oldClasspath.from(files("${buildDir}/japicmp-target/opensearch-${japicmpCompareTarget}.jar"))
411413
newClasspath.from(tasks.named('jar'))
412414
onlyModified = true

0 commit comments

Comments
 (0)