From 75d0db99f19562add74faa9a098d83a85b33160b Mon Sep 17 00:00:00 2001 From: Scott M Stark Date: Mon, 11 Oct 2021 15:51:42 -0500 Subject: [PATCH] An alternate way to build Java 8 source/target jar with Java 8 module-info.class Signed-off-by: Scott M Stark --- pom.xml | 92 +++++++++++++---------- src/main/{java9 => java}/module-info.java | 0 2 files changed, 53 insertions(+), 39 deletions(-) rename src/main/{java9 => java}/module-info.java (100%) diff --git a/pom.xml b/pom.xml index 22c8403..28cb7ae 100644 --- a/pom.xml +++ b/pom.xml @@ -1,9 +1,10 @@ - + org.eclipse.ee4j project 1.0.6 - + 4.0.0 @@ -74,8 +75,6 @@ jakarta.inject.* 2.0 - 1.8 - 1.8 @@ -94,10 +93,12 @@ org.apache.maven.plugins maven-source-plugin + 3.2.1 org.apache.maven.plugins maven-javadoc-plugin + 3.3.0 true Jakarta Dependency Injection API @@ -122,49 +123,62 @@ Use is subject to - org.apache.maven.plugins - maven-jar-plugin - - - target/classes/META-INF/MANIFEST.MF - - + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + target/classes/META-INF/MANIFEST.MF + + - org.apache.felix - maven-bundle-plugin - 4.2.1 - - - ${spec_version} - - - - - osgi-manifest - process-classes - - manifest - - - - + org.apache.felix + maven-bundle-plugin + 4.2.1 + + + ${spec_version} + + + + + osgi-manifest + process-classes + + manifest + + + + + - org.moditect - moditect-maven-plugin - 1.0.0.RC1 + maven-compiler-plugin + 3.8.1 + + + 9 + + -Xlint:all + + true + true + + - add-module-infos - package + base-compile - add-module-info + compile - 9 - - src/main/java9/module-info.java - + 8 + + module-info.java + diff --git a/src/main/java9/module-info.java b/src/main/java/module-info.java similarity index 100% rename from src/main/java9/module-info.java rename to src/main/java/module-info.java