From 2d696b4d8293a2d266b2261358bdc4e5ebce6b4c Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Wed, 12 Oct 2022 13:36:08 +0200 Subject: [PATCH] updated module-info and replaced moditect-maven-plugin --- pom.xml | 61 ++++++++++----------------------- src/main/java9/module-info.java | 19 ++++++++++ 2 files changed, 37 insertions(+), 43 deletions(-) create mode 100644 src/main/java9/module-info.java diff --git a/pom.xml b/pom.xml index 8020be3..93c7da9 100644 --- a/pom.xml +++ b/pom.xml @@ -156,10 +156,26 @@ UTF-8 true + + + java9 + compile + + compile + + + 9 + + ${project.basedir}/src/main/java9 + + true + + + maven-shade-plugin - 3.2.4 + 3.4.0 package @@ -179,7 +195,7 @@ org.bouncycastle - org.cryptomator.cryptolib.org.bouncycastle + org.cryptomator.cryptolib.shaded.bouncycastle @@ -194,47 +210,6 @@ - - org.moditect - moditect-maven-plugin - 1.0.0.RC2 - - - add-module-infos - package - - add-module-info - - - 9 - true - - - module org.cryptomator.cryptolib { - requires org.cryptomator.siv; - requires com.google.gson; - requires transitive com.google.common; - requires org.slf4j; - - exports org.cryptomator.cryptolib.api; - exports org.cryptomator.cryptolib.common; - - opens org.cryptomator.cryptolib.common to com.google.gson; - - uses org.cryptomator.cryptolib.api.CryptorProvider; - - provides org.cryptomator.cryptolib.api.CryptorProvider - with org.cryptomator.cryptolib.v1.CryptorProviderImpl, org.cryptomator.cryptolib.v2.CryptorProviderImpl; - } - - - - --multi-release=9 - - - - - org.apache.maven.plugins maven-surefire-plugin diff --git a/src/main/java9/module-info.java b/src/main/java9/module-info.java new file mode 100644 index 0000000..8d362b2 --- /dev/null +++ b/src/main/java9/module-info.java @@ -0,0 +1,19 @@ +module org.cryptomator.cryptolib { + requires static org.bouncycastle.provider; // will be shaded + requires static org.bouncycastle.pkix; // will be shaded + requires jdk.crypto.ec; // required at runtime for ECC + requires org.cryptomator.siv; + requires com.google.gson; + requires transitive com.google.common; + requires org.slf4j; + + exports org.cryptomator.cryptolib.api; + exports org.cryptomator.cryptolib.common; + + opens org.cryptomator.cryptolib.common to com.google.gson; + + uses org.cryptomator.cryptolib.api.CryptorProvider; + + provides org.cryptomator.cryptolib.api.CryptorProvider + with org.cryptomator.cryptolib.v1.CryptorProviderImpl, org.cryptomator.cryptolib.v2.CryptorProviderImpl; +} \ No newline at end of file