From efb10736f9c016dbe081537f9364adda28df177b Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Tue, 15 Aug 2023 10:27:37 -0600 Subject: [PATCH] Add module-info and compile it with Java 9+ Signed-off-by: Taylor Smock --- Source/module-info.java | 3 ++ pom.xml | 64 +++++++++++++++++++++++++++++++++++------ 2 files changed, 58 insertions(+), 9 deletions(-) create mode 100644 Source/module-info.java diff --git a/Source/module-info.java b/Source/module-info.java new file mode 100644 index 000000000..13650da26 --- /dev/null +++ b/Source/module-info.java @@ -0,0 +1,3 @@ +open module com.drew.imaging { + requires xmpcore; +} diff --git a/pom.xml b/pom.xml index 3010d9d35..10a5427a1 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,61 @@ -Xdoclint:none + + build-module-info-disabled + + (,1.8] + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.7 + 1.7 + + module-info.java + + + + + + + + build-module-info + + [9,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + 7 + + + + default-compile + + 9 + + + + base-compile + compile + + module-info.java + + + + + + + @@ -114,15 +169,6 @@ - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.7 - 1.7 - - org.apache.maven.plugins maven-surefire-plugin