From 58330d0c86da77846492af8c4b74b159380f0d0b Mon Sep 17 00:00:00 2001 From: Pucheng Yang <8072956+puchengy@users.noreply.github.com> Date: Sun, 12 Feb 2023 13:31:30 -0800 Subject: [PATCH] [backport] Build: Let revapi compare API compatibility against apache-iceberg-1.0.0 (#6053) (#32) (cherry picked from commit c7aa5c878faec17bca2c516bcdef51914c1bc63a) Co-authored-by: Ajantha Bhat --- .github/workflows/api-binary-compatibility.yml | 1 + .palantir/revapi.yml | 2 -- build.gradle | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api-binary-compatibility.yml b/.github/workflows/api-binary-compatibility.yml index 40d6459f3c53..867ad46f53f0 100644 --- a/.github/workflows/api-binary-compatibility.yml +++ b/.github/workflows/api-binary-compatibility.yml @@ -28,6 +28,7 @@ on: pull_request: paths: - 'api/**' + - '.palantir/revapi.yml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.palantir/revapi.yml b/.palantir/revapi.yml index b04a7a12b574..e8f90355b60a 100644 --- a/.palantir/revapi.yml +++ b/.palantir/revapi.yml @@ -1,5 +1,3 @@ -versionOverrides: - org.apache.iceberg:iceberg-api:apache-iceberg-0.14.0: "0.14.0" acceptedBreaks: apache-iceberg-0.14.0: org.apache.iceberg:iceberg-api: diff --git a/build.gradle b/build.gradle index ab027e3d5f84..31fc3c5e8b1a 100644 --- a/build.gradle +++ b/build.gradle @@ -220,6 +220,12 @@ project(':iceberg-bundled-guava') { project(':iceberg-api') { apply plugin: 'com.palantir.revapi' + revapi { + oldGroup = "org.apache.iceberg" + oldName = "iceberg-api" + oldVersion = "1.0.0" + } + dependencies { implementation project(path: ':iceberg-bundled-guava', configuration: 'shadow') compileOnly "com.google.errorprone:error_prone_annotations"