@@ -395,7 +395,7 @@ tasks.named("sourcesJar").configure {
395395tasks. register(" japicmp" , me.champeau.gradle.japicmp.JapicmpTask ) {
396396 logger. info(" Comparing public APIs from ${ version} to ${ japicmpCompareTarget} " )
397397 // See please https://github.com/siom79/japicmp/issues/201
398- compatibilityChangeExcludes = [ " METHOD_ABSTRACT_NOW_DEFAULT" ]
398+ compatibilityChangeExcludes = [ " METHOD_ABSTRACT_NOW_DEFAULT" , " METHOD_ADDED_TO_INTERFACE " ]
399399 oldClasspath. from(files(" ${ buildDir} /japicmp-target/opensearch-${ japicmpCompareTarget} .jar" ))
400400 newClasspath. from(tasks. named(' jar' ))
401401 onlyModified = true
@@ -404,6 +404,21 @@ tasks.register("japicmp", me.champeau.gradle.japicmp.JapicmpTask) {
404404 failOnSourceIncompatibility = true
405405 annotationIncludes = [' @org.opensearch.common.annotation.PublicApi' , ' @org.opensearch.common.annotation.DeprecatedApi' ]
406406 annotationExcludes = [' @org.opensearch.common.annotation.InternalApi' ]
407+ // Already broken APIs, excluding them for now
408+ classExcludes = [
409+ " org.opensearch.action.DocWriteRequest" ,
410+ " org.opensearch.cluster.ClusterInfo" ,
411+ " org.opensearch.cluster.service.PendingClusterTask" ,
412+ " org.opensearch.index.IndexService" ,
413+ " org.opensearch.indices.IndicesService" ,
414+ " org.opensearch.index.IndexModule" ,
415+ " org.opensearch.index.store.remote.filecache.FileCacheStats" ,
416+ " org.opensearch.index.store.remote.filecache.FileCache" ,
417+ " org.opensearch.index.store.remote.utils.cache.CacheUsage" ,
418+ " org.opensearch.index.store.remote.utils.cache.stats.CacheStats" ,
419+ " org.opensearch.index.query.QueryCoordinatorContext" ,
420+ " org.opensearch.index.shard.IndexShard"
421+ ]
407422 txtOutputFile = layout. buildDirectory. file(" reports/java-compatibility/report.txt" )
408423 htmlOutputFile = layout. buildDirectory. file(" reports/java-compatibility/report.html" )
409424 dependsOn downloadJapicmpCompareTarget
0 commit comments