From 9d0d964f7a3ff5207cb58126dbc5c70a63f8300a Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Wed, 23 Oct 2024 17:06:08 -0500 Subject: [PATCH] Fixes #4098 - Update Jakarta Annotations TCK to 3.0.0 (#4099) --- .github/workflows/tck-coreprofile.yml | 20 +-- external/coreprofile-tck/annotations/pom.xml | 124 ------------------- external/coreprofile-tck/pom.xml | 2 - external/tck/annotations/installer/pom.xml | 61 +++++++++ external/tck/annotations/pom.xml | 49 ++++++++ external/tck/annotations/runner/pom.xml | 98 +++++++++++++++ external/tck/pom.xml | 1 + 7 files changed, 215 insertions(+), 140 deletions(-) delete mode 100644 external/coreprofile-tck/annotations/pom.xml create mode 100644 external/tck/annotations/installer/pom.xml create mode 100644 external/tck/annotations/pom.xml create mode 100644 external/tck/annotations/runner/pom.xml diff --git a/.github/workflows/tck-coreprofile.yml b/.github/workflows/tck-coreprofile.yml index 380b81ac0..30c39ab01 100644 --- a/.github/workflows/tck-coreprofile.yml +++ b/.github/workflows/tck-coreprofile.yml @@ -1,17 +1,5 @@ name: tck-coreprofile on: - push: - paths: - - 'external/coreprofile-tck/**' - branches: - - '*' - tags-ignore: - - 'v*' - pull_request: - paths: - - 'external/coreprofile-tck/**' - branches: - - '*' schedule: - cron: "0 0 * * *" workflow_dispatch: @@ -35,9 +23,13 @@ jobs: run: mvn -B -DskipTests=true -ntp install - name: Run TCK run: | - cd external/coreprofile-tck/annotations + cd external/tck/annotations mvn -B -ntp verify - cat target/tck/report/text/summary.txt >> $GITHUB_STEP_SUMMARY + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: "external/tck/annotations/runner/target/failsafe-reports/*IT.xml" + if: always() atinject: if: github.repository == 'piranhacloud/piranha' runs-on: ${{ matrix.os }} diff --git a/external/coreprofile-tck/annotations/pom.xml b/external/coreprofile-tck/annotations/pom.xml deleted file mode 100644 index 52d147d66..000000000 --- a/external/coreprofile-tck/annotations/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - 4.0.0 - - - cloud.piranha.external.coreprofiletck - project - 24.11.0-SNAPSHOT - - - annotations-tck - pom - - Piranha Core Profile - Annotations TCK - - - ${project.build.directory}/ant - ${project.build.directory}/signature - ${project.build.directory}/tck - ${tck.home}/src/com/sun/ts/tests - - - - - - cloud.piranha - bom - ${project.version} - pom - import - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - pre-integration-test - pre-integration-test - - run - - - - - - - - - - - - - - - - - - - - - integration-test - integration-test - - run - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - pre-integration-test - pre-integration-test - - copy - - - - - jakarta.annotation - jakarta.annotation-api - ${signature.home} - jakarta.annotation-api.jar - - - - - - - - - diff --git a/external/coreprofile-tck/pom.xml b/external/coreprofile-tck/pom.xml index 7cb40a321..b0186466a 100644 --- a/external/coreprofile-tck/pom.xml +++ b/external/coreprofile-tck/pom.xml @@ -16,7 +16,6 @@ Piranha Core Profile - Core Profile TCK project - annotations atinject cdi coreprofile @@ -27,7 +26,6 @@ - 2.1.1 4.0.13 10.0.3 2.0.2 diff --git a/external/tck/annotations/installer/pom.xml b/external/tck/annotations/installer/pom.xml new file mode 100644 index 000000000..b53fb283c --- /dev/null +++ b/external/tck/annotations/installer/pom.xml @@ -0,0 +1,61 @@ + + + + 4.0.0 + + + cloud.piranha.external.tck.annotations + project + 24.11.0-SNAPSHOT + + + piranha-external-tck-annotations-installer + pom + + Piranha - External - TCK - Annotations - Installer + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + pre-integration-test + pre-integration-test + + run + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + true + + + + + diff --git a/external/tck/annotations/pom.xml b/external/tck/annotations/pom.xml new file mode 100644 index 000000000..a4270b19c --- /dev/null +++ b/external/tck/annotations/pom.xml @@ -0,0 +1,49 @@ + + + + 4.0.0 + + + cloud.piranha.external.tck + project + 24.11.0-SNAPSHOT + + + cloud.piranha.external.tck.annotations + project + pom + + Piranha - External - TCK - Annotations - Project + + + 3.0.0 + 2.2 + + + + installer + runner + + + + + + cloud.piranha + bom + ${project.version} + pom + import + + + jakarta.tck + sigtest-maven-plugin + ${sigtest-maven-plugin.version} + + + jakarta.annotation + jakarta-annotations-tck + ${annotations.tck.version} + + + + diff --git a/external/tck/annotations/runner/pom.xml b/external/tck/annotations/runner/pom.xml new file mode 100644 index 000000000..adbffe5e8 --- /dev/null +++ b/external/tck/annotations/runner/pom.xml @@ -0,0 +1,98 @@ + + + + 4.0.0 + + + cloud.piranha.external.tck.annotations + project + 24.11.0-SNAPSHOT + + + piranha-external-tck-annotations-runner + pom + + Piranha - External - TCK - Annotations - Runner + + + ${project.build.directory}/jimage + + + + jakarta.annotation + jakarta-annotations-tck + test + + + jakarta.tck + sigtest-maven-plugin + test + + + org.junit.jupiter + junit-jupiter + test + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + pre-integration-test + pre-integration-test + + copy + + + + + + jakarta.annotation + jakarta.annotation-api + ${project.build.directory} + jakarta.annotation-api.jar + + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + sig-test + + integration-test + verify + + + jakarta.annotation:jakarta-annotations-tck + + ${jimage.dir} + ${project.build.directory}/jakarta.annotation-api.jar:${jimage.dir}/java.base:${jimage.dir}/java.rmi:${jimage.dir}/java.sql:${jimage.dir}/java.naming + true + true + true + true + true + true + true + true + true + true + true + true + true + + + + + + + + diff --git a/external/tck/pom.xml b/external/tck/pom.xml index 665b24ad2..ba9432e9d 100644 --- a/external/tck/pom.xml +++ b/external/tck/pom.xml @@ -16,6 +16,7 @@ Piranha - External - TCK - Project + annotations el jwt server