From 3da7931937662417e69a8c7f5ac5b097aafc3ca0 Mon Sep 17 00:00:00 2001 From: "Claas j. Gramann" Date: Sun, 17 Sep 2023 17:12:59 +0200 Subject: [PATCH] Add module-info.java as multi release --- pom.xml | 39 ++++++++++++++++++++++++++++----- src/main/java9/module-info.java | 9 ++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 src/main/java9/module-info.java diff --git a/pom.xml b/pom.xml index effb356..2af0fd0 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 micycle clipper2 @@ -27,6 +27,34 @@ + + + compile-java-9 + compile + + compile + + + 9 + + ${project.basedir}/src/main/java9 + + true + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + + true + + + pw.krejci @@ -46,7 +74,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.22.2 + 3.1.2 4 false @@ -55,7 +83,7 @@ org.apache.maven.plugins maven-source-plugin - 3.2.1 + 3.3.0 attach-sources @@ -68,10 +96,11 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.5.0 + 3.6.0 false all + 8 diff --git a/src/main/java9/module-info.java b/src/main/java9/module-info.java new file mode 100644 index 0000000..aac5d70 --- /dev/null +++ b/src/main/java9/module-info.java @@ -0,0 +1,9 @@ +module clipper2 { + exports clipper2; + exports clipper2.core; + exports clipper2.engine; + exports clipper2.offset; + exports clipper2.rectclip; + + exports tangible; +} \ No newline at end of file