Skip to content

Commit

Permalink
added module-info
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed May 21, 2021
1 parent f5b7b76 commit 0921eea
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
21 changes: 19 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- dependencies -->
<gson.version>2.8.6</gson.version>
<guava.version>30.1.1-jre</guava.version>
<siv-mode.version>1.4.1</siv-mode.version>
<siv-mode.version>1.4.2</siv-mode.version>
<slf4j.version>1.7.30</slf4j.version>

<!-- test dependencies -->
Expand Down Expand Up @@ -147,6 +147,22 @@
<encoding>UTF-8</encoding>
<showWarnings>true</showWarnings>
</configuration>
<executions>
<execution>
<id>java9</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>9</release>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
</compileSourceRoots>
<multiReleaseOutput>true</multiReleaseOutput>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -160,7 +176,8 @@
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.cryptomator.cryptolib</Automatic-Module-Name>
<Multi-Release>true</Multi-Release>
<Sealed>true</Sealed>
</manifestEntries>
</archive>
</configuration>
Expand Down
12 changes: 12 additions & 0 deletions src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module org.cryptomator.cryptolib {
requires org.cryptomator.siv;
requires com.google.gson;
requires com.google.common;
requires org.slf4j;

exports org.cryptomator.cryptolib;
exports org.cryptomator.cryptolib.api;
exports org.cryptomator.cryptolib.common;

opens org.cryptomator.cryptolib.common to com.google.gson;
}

0 comments on commit 0921eea

Please sign in to comment.