From 6c82f5bff5b675a60d05adcbf40d502bddd35098 Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Tue, 24 Oct 2023 14:06:13 +0200 Subject: [PATCH] Introduce a profile allowing to patch CDI and interceptors API jars in WFLY. Use this in CI jobs. --- .github/workflows/ci-actions.yml | 2 +- jboss-as/pom.xml | 105 ++++++++++++++++++++++++++++++- 2 files changed, 105 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index 6c5aba267d..240da7e80e 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -53,7 +53,7 @@ jobs: run: | JBOSS_HOME=`pwd`'/container/*' export JBOSS_HOME=`echo $JBOSS_HOME` - mvn clean package -Pupdate-jboss-as -Dtck -f jboss-as/pom.xml + mvn clean package -Pupdate-jboss-as -Pupdate-jakarta-apis -Dtck -f jboss-as/pom.xml - name: Zip Patched WildFly run: | cd container/ diff --git a/jboss-as/pom.xml b/jboss-as/pom.xml index 37ae624355..4bd60fdb9a 100644 --- a/jboss-as/pom.xml +++ b/jboss-as/pom.xml @@ -31,6 +31,9 @@ 6.0.0-SNAPSHOT + + 4.1.0.Alpha1 + 2.2.0-RC1 @@ -69,6 +72,21 @@ cdi-tck-ext-lib ${cdi.tck-4-0.version} + + jakarta.enterprise + jakarta.enterprise.cdi-api + ${cdi.update.version} + + + jakarta.enterprise + jakarta.enterprise.lang-model + ${cdi.update.version} + + + jakarta.interceptor + jakarta.interceptor-api + 2.2.0-RC1 + @@ -188,6 +206,91 @@ + + + + update-jakarta-apis + + package + + + org.apache.maven.plugins + maven-antrun-plugin + + + update-jakarta-apis + package + + run + + + + + + + + + + ========================================================================= + + Updating CDI module and Interceptors API module + + CDI version: ${cdi.update.version} + Interceptors version: ${interceptors.update.version} + + JBOSS_HOME: ${jboss.home} + + ========================================================================= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + install-cdi-tck-ext-lib @@ -239,7 +342,7 @@ ${project.build.directory}/dependency/lib true - cdi-api,weld-api,weld-core-impl,weld-lite-extension-translator,weld-jsf,weld-ejb,weld-jta,weld-web,weld-spi,cdi-tck-ext-lib + jakarta.enterprise.cdi-api,jakarta.enterprise.lang-model,jakarta.interceptor-api,weld-api,weld-core-impl,weld-lite-extension-translator,weld-jsf,weld-ejb,weld-jta,weld-web,weld-spi,cdi-tck-ext-lib