From 8a0eeb81b054820997c00ccae3a720d6aa3f4a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bl=C3=A4sing?= Date: Thu, 18 Feb 2021 22:33:11 +0100 Subject: [PATCH] Split jpms modules into independet artifacts instead of classifier based solution The jna-platform artifact depends on jna - this leads to problems when the JPMS artifacts are used, as the pom.xml for the classifier based artifacts are identical to the base artifacts. This leads to net.java.dev.jna jna-platform 5.7.0 jpms depending on net.java.dev.jna jna 5.7.0 so the jna-platform JPMS artifacts pulls in the non-JPMS jna artifact. To solve this, both artifacts are moved into their own groupId. So net.java.dev.jna jna-platform 5.8.0 jpms becomes net.java.dev.jna.jpms jna-platform 5.8.0 --- build.xml | 93 +++++++++++++++++++++++++++++++++------ pom-jna-jpms.xml | 53 ++++++++++++++++++++++ pom-jna-platform-jpms.xml | 61 +++++++++++++++++++++++++ pom-jna-platform.xml | 6 +-- 4 files changed, 196 insertions(+), 17 deletions(-) create mode 100644 pom-jna-jpms.xml create mode 100644 pom-jna-platform-jpms.xml diff --git a/build.xml b/build.xml index ff8997c098..9fde0aac5f 100644 --- a/build.xml +++ b/build.xml @@ -152,9 +152,13 @@ + + + + @@ -195,7 +199,7 @@ - + @@ -203,11 +207,14 @@ - - + + + + + + + + @@ -1553,10 +1570,10 @@ cd .. - + - - + + @@ -1569,10 +1586,10 @@ cd .. - + - - + + @@ -1584,9 +1601,9 @@ cd .. - - - + + + @@ -1595,9 +1612,31 @@ cd .. - + - + + + + + + + + + + + + + + + + + + + + + + + @@ -1630,6 +1669,32 @@ cd .. + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom-jna-jpms.xml b/pom-jna-jpms.xml new file mode 100644 index 0000000000..e71f4e37af --- /dev/null +++ b/pom-jna-jpms.xml @@ -0,0 +1,53 @@ + + 4.0.0 + + net.java.dev.jna.jpms + jna + TEMPLATE + jar + + Java Native Access + Java Native Access + https://github.com/java-native-access/jna + + + + LGPL, version 2.1 + http://www.gnu.org/licenses/licenses.html + repo + + + Apache License v2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + scm:git:https://github.com/java-native-access/jna + scm:git:ssh://git@github.com/java-native-access/jna.git + https://github.com/java-native-access/jna + + + + + twall + Timothy Wall + + Owner + + + + mblaesing@doppel-helix.eu + Matthias Bläsing + https://github.com/matthiasblaesing/ + + Developer + + + + + diff --git a/pom-jna-platform-jpms.xml b/pom-jna-platform-jpms.xml new file mode 100644 index 0000000000..7ef76fa9c1 --- /dev/null +++ b/pom-jna-platform-jpms.xml @@ -0,0 +1,61 @@ + + 4.0.0 + + net.java.dev.jna + jna-platform + TEMPLATE + jar + + Java Native Access Platform + Java Native Access Platform + https://github.com/java-native-access/jna + + + + LGPL, version 2.1 + http://www.gnu.org/licenses/licenses.html + repo + + + Apache License v2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + scm:git:https://github.com/java-native-access/jna + scm:git:ssh://git@github.com/java-native-access/jna.git + https://github.com/java-native-access/jna + + + + + twall + Timothy Wall + + Owner + + + + mblaesing@doppel-helix.eu + Matthias Bläsing + https://github.com/matthiasblaesing/ + + Developer + + + + + + + net.java.dev.jna + jna + TEMPLATE + + + + diff --git a/pom-jna-platform.xml b/pom-jna-platform.xml index bb86696690..0f855827e4 100644 --- a/pom-jna-platform.xml +++ b/pom-jna-platform.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - net.java.dev.jna + net.java.dev.jna.jpms jna-platform TEMPLATE jar @@ -52,9 +52,9 @@ - net.java.dev.jna + net.java.dev.jna.jpms jna - 5.5.1-SNAPSHOT + TEMPLATE