From b8af0e7ee95885137228b2d68073d870186401a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 20 Dec 2017 08:27:09 +0100 Subject: [PATCH] Build a WildFly patch file for WildFly 12 too, not only WildFly 11 --- modules/pom.xml | 128 +++++++++++++++--- .../src/main/patchdef/wildfly-next-patch.xml | 15 ++ pom.xml | 5 +- 3 files changed, 127 insertions(+), 21 deletions(-) create mode 100644 modules/src/main/patchdef/wildfly-next-patch.xml diff --git a/modules/pom.xml b/modules/pom.xml index 6b2bd1e..0b11df5 100644 --- a/modules/pom.xml +++ b/modules/pom.xml @@ -14,12 +14,18 @@ Patch file for WildFly to upgrade its JPA API version to 2.2 - src/main/patchdef/wildfly-current-patch.xml - + ${project.build.directory}/wildfly-original + ${project.build.directory}/wildfly-patched - ${project.build.directory}/wildfly-original/wildfly-${wildfly.version} - ${project.build.directory}/wildfly-patched/wildfly-${wildfly.version} - ${project.build.directory}/wildfly-jpa-2.2-patch.zip + src/main/patchdef/wildfly-current-patch.xml + ${wildfly.original.parent-dir}/wildfly-${wildfly.version} + ${wildfly.patched.parent-dir}/wildfly-${wildfly.version} + ${project.build.directory}/wildfly-${wildfly.version}-jpa-2.2-patch.zip + + src/main/patchdef/wildfly-current-patch.xml + ${project.build.directory}/wildfly-original/wildfly-${wildfly-next.version} + ${project.build.directory}/wildfly-patched/wildfly-${wildfly-next.version} + ${project.build.directory}/wildfly-${wildfly-next.version}-jpa-2.2-patch.zip @@ -28,13 +34,6 @@ javax.persistence-api provided - - org.wildfly - wildfly-dist - ${wildfly.version} - provided - tar.gz - @@ -44,7 +43,7 @@ - unpack-wildfly + unpack-wildfly-current generate-resources unpack @@ -57,7 +56,26 @@ ${wildfly.version} tar.gz false - ${project.build.directory}/wildfly-original + ${wildfly.original.parent-dir} + + + + + + unpack-wildfly-next + generate-resources + + unpack + + + + + org.wildfly + wildfly-dist + ${wildfly-next.version} + tar.gz + false + ${wildfly.original.parent-dir} @@ -66,7 +84,7 @@ WildFly copy will be created later below, at this point we're only copying the new jar into the right structure --> - prepare-patch-jars + prepare-wildfly-current-patch-jars prepare-package copy @@ -85,6 +103,26 @@ + + prepare-wildfly-next-patch-jars + prepare-package + + copy + + + + + javax.persistence + javax.persistence-api + ${jpa-api.version} + false + ${wildfly-next.patched.target-dir}/modules/system/layers/base/javax/persistence/api/main + + javax.persistence-api-${jpa-api.version}.jar + + + + @@ -92,7 +130,7 @@ maven-resources-plugin - create-patched-wildfly-dist + create-patched-wildfly-current-dist generate-resources copy-resources @@ -100,17 +138,35 @@ - ${project.build.directory}/wildfly-original + ${wildfly.original.target-dir} **/modules/system/layers/base/javax/persistence/api/main/* - ${project.build.directory}/wildfly-patched + ${wildfly.patched.target-dir} - modules + create-patched-wildfly-next-dist + generate-resources + + copy-resources + + + + + ${wildfly-next.original.target-dir} + + **/modules/system/layers/base/javax/persistence/api/main/* + + + + ${wildfly-next.patched.target-dir} + + + + add-overridden-modules-to-patched-wildfly-current-dist generate-resources copy-resources @@ -125,6 +181,22 @@ ${wildfly.patched.target-dir}/modules/system/layers/base/javax/persistence/api/main + + add-overridden-modules-to-patched-wildfly-next-dist + generate-resources + + copy-resources + + + + + src/main/module + true + + + ${wildfly-next.patched.target-dir}/modules/system/layers/base/javax/persistence/api/main + + @@ -146,6 +218,19 @@ ${wildfly.patch-file} + + create-wildfly-next-patch-file + prepare-package + + generate-patch + + + ${wildfly-next.original.target-dir} + ${patchdef-next.xml} + ${wildfly-next.patched.target-dir} + ${wildfly-next.patch-file} + + @@ -167,6 +252,11 @@ zip wildfly-${wildfly.version}-patch + + ${wildfly-next.patch-file} + zip + wildfly-${wildfly-next.version}-patch + diff --git a/modules/src/main/patchdef/wildfly-next-patch.xml b/modules/src/main/patchdef/wildfly-next-patch.xml new file mode 100644 index 0000000..75c1f5d --- /dev/null +++ b/modules/src/main/patchdef/wildfly-next-patch.xml @@ -0,0 +1,15 @@ + + + wildfly-12.0.0.Alpha1-SNAPSHOT-persistence-api-2.2-1.0.0-SNAPSHOT + This patch upgrades a WildFly 12.0.0.Alpha1-SNAPSHOT installation to JPA 2.2 APIs + + + This patch upgrades a WildFly 12.0.0.Alpha1-SNAPSHOT installation to JPA 2.2 APIs + + + + + + + + diff --git a/pom.xml b/pom.xml index 952626e..6586fa7 100644 --- a/pom.xml +++ b/pom.xml @@ -31,8 +31,9 @@ UTF-8 UTF-8 - + 11.0.0.Final + 12.0.0.Final 2.2 @@ -40,7 +41,7 @@ 2.0.1.Alpha5 5.0.3 1.2.1.Final - 3.0.10.Final + 4.0.0.Final 1.1.11.Final