diff --git a/pom.xml b/pom.xml index 6dbf118..5ad1f0f 100644 --- a/pom.xml +++ b/pom.xml @@ -156,22 +156,6 @@ UTF-8 true - - - java9 - compile - - compile - - - 9 - - ${project.basedir}/src/main/java9 - - true - - - maven-shade-plugin @@ -210,6 +194,47 @@ + + org.moditect + moditect-maven-plugin + 1.0.0.RC1 + + + add-module-infos + package + + add-module-info + + + 9 + true + + + module org.cryptomator.cryptolib { + requires org.cryptomator.siv; + requires com.google.gson; + requires 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 deleted file mode 100644 index e1dd80d..0000000 --- a/src/main/java9/module-info.java +++ /dev/null @@ -1,18 +0,0 @@ -module org.cryptomator.cryptolib { - requires org.cryptomator.siv; - requires com.google.gson; - requires com.google.common; - requires org.slf4j; - requires static org.bouncycastle.provider; - requires static org.bouncycastle.pkix; - - 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