From a7e077ab24d833c416dc13a83adee38342faf746 Mon Sep 17 00:00:00 2001 From: "Henning P. Schmiedehausen" Date: Sat, 20 Jan 2024 09:58:32 -0800 Subject: [PATCH] Introduce japicmp for API diffing create a report for API compatibility for every build. --- .github/workflows/cd.yml | 3 ++ .github/workflows/doc.yml | 4 ++ .github/workflows/style.yml | 5 ++- benchmark/pom.xml | 1 + docs/pom.xml | 1 + e2e/pom.xml | 1 + internal/build/pom.xml | 76 +++++++++++++++++++++++++++++++++++++ noparameters/pom.xml | 1 + 8 files changed, 91 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b759c0924..853a21450 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,6 +12,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-tags: true + fetch-depth: 0 - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index d919a1f9e..ee97dd041 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -1,3 +1,4 @@ +--- name: Documentation build on: @@ -14,6 +15,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-tags: true + fetch-depth: 0 - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index bdbdd1daa..0194a055b 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -1,5 +1,5 @@ --- -name: Code style analysis +name: Run all code checkers (style, static analysis, api versions etc.) on: push: @@ -19,6 +19,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-tags: true + fetch-depth: 0 - uses: actions/setup-java@v4 with: diff --git a/benchmark/pom.xml b/benchmark/pom.xml index 1d4160f92..2b96291a5 100644 --- a/benchmark/pom.xml +++ b/benchmark/pom.xml @@ -32,6 +32,7 @@ true true 1.37 + true org.jdbi.v3.benchmark benchmarks diff --git a/docs/pom.xml b/docs/pom.xml index 2985a626a..cd5b47919 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -41,6 +41,7 @@ / false scm:git:https://github.com/jdbi/jdbi.github.io + true org.jdbi.v3.docs diff --git a/e2e/pom.xml b/e2e/pom.xml index 3933a893f..ff374f67e 100644 --- a/e2e/pom.xml +++ b/e2e/pom.xml @@ -32,6 +32,7 @@ true 600 + true org.jdbi.v3.e2e diff --git a/internal/build/pom.xml b/internal/build/pom.xml index 605f1e483..150c2bc94 100644 --- a/internal/build/pom.xml +++ b/internal/build/pom.xml @@ -115,6 +115,7 @@ 1.9.0 1.5.0 1.3.0 + 0.18.3 1.9.22 2.0.0 3.3.0 @@ -126,9 +127,11 @@ 1.19.4 0.9.3 ${jdbi.check.fail-kotlin} + ${basepom.check.fail-extended} ${basepom.check.fail-extended} ${jdbi.check.fail-kotlin} ${jdbi.check.skip-kotlin} + ${basepom.check.skip-extended} ${basepom.check.skip-extended} ${jdbi.check.skip-kotlin} ${basepom.check.skip-basic} @@ -831,6 +834,42 @@ true + + + com.github.siom79.japicmp + japicmp-maven-plugin + ${dep.plugin.japicmp.version} + + ${jdbi.check.skip-japicmp} + + true + true + true + ${jdbi.check.fail-japicmp} + + + *.internal.* + @org.jdbi.v3.meta.Alpha + @org.jdbi.v3.meta.Beta + + + + + + ${project.groupId} + ${project.artifactId} + ${jdbi.build.previous-version} + jar + + + + + ${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging} + + + + + org.apache.maven.plugins maven-surefire-plugin @@ -901,6 +940,43 @@ + + org.basepom.maven + property-helper-maven-plugin + + + japicmp + + get + + verify + + + + jdbi.build.previous-version + true + + @{git.closest.tag.name} + + ^v(.*)$ + + + + + + + + com.github.siom79.japicmp + japicmp-maven-plugin + + + + cmp + + verify + + + diff --git a/noparameters/pom.xml b/noparameters/pom.xml index 1f944edb7..9a5c6121d 100644 --- a/noparameters/pom.xml +++ b/noparameters/pom.xml @@ -33,6 +33,7 @@ true true + true org.jdbi.v3.noparameters