From 4a0a3a13fecadc3308c32e7f2652a2e85996a7e7 Mon Sep 17 00:00:00 2001 From: Kyle Bendickson Date: Sat, 14 May 2022 11:33:50 -0700 Subject: [PATCH] Build: Add binary compatibility checks via revapi gradle plugin (#4638) --- .palantir/revapi.yml | 2 ++ build.gradle | 3 +++ dev/.rat-excludes | 1 + 3 files changed, 6 insertions(+) create mode 100644 .palantir/revapi.yml diff --git a/.palantir/revapi.yml b/.palantir/revapi.yml new file mode 100644 index 000000000000..34f516e3d265 --- /dev/null +++ b/.palantir/revapi.yml @@ -0,0 +1,2 @@ +versionOverrides: + org.apache.iceberg:iceberg-api:release-base-0.13.0: "0.13.0" diff --git a/build.gradle b/build.gradle index 43a16085b8b0..4911a3ad191d 100644 --- a/build.gradle +++ b/build.gradle @@ -33,6 +33,7 @@ buildscript { classpath 'gradle.plugin.org.inferred:gradle-processors:3.3.0' classpath 'me.champeau.jmh:jmh-gradle-plugin:0.6.6' classpath "com.github.alisiikh:gradle-scalastyle-plugin:3.4.1" + classpath 'com.palantir.gradle.revapi:gradle-revapi:1.7.0' } } @@ -191,6 +192,8 @@ project(':iceberg-bundled-guava') { } project(':iceberg-api') { + apply plugin: 'com.palantir.revapi' + dependencies { implementation project(path: ':iceberg-bundled-guava', configuration: 'shadow') compileOnly "com.google.errorprone:error_prone_annotations" diff --git a/dev/.rat-excludes b/dev/.rat-excludes index 7ed3646ea793..94874c2e0272 100644 --- a/dev/.rat-excludes +++ b/dev/.rat-excludes @@ -9,6 +9,7 @@ build .rat-excludes LICENSE NOTICE +revapi.yml gradlew examples/* gradle/*