Skip to content

Commit 0921eea

Browse files
added module-info
1 parent f5b7b76 commit 0921eea

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

pom.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- dependencies -->
2121
<gson.version>2.8.6</gson.version>
2222
<guava.version>30.1.1-jre</guava.version>
23-
<siv-mode.version>1.4.1</siv-mode.version>
23+
<siv-mode.version>1.4.2</siv-mode.version>
2424
<slf4j.version>1.7.30</slf4j.version>
2525

2626
<!-- test dependencies -->
@@ -147,6 +147,22 @@
147147
<encoding>UTF-8</encoding>
148148
<showWarnings>true</showWarnings>
149149
</configuration>
150+
<executions>
151+
<execution>
152+
<id>java9</id>
153+
<phase>compile</phase>
154+
<goals>
155+
<goal>compile</goal>
156+
</goals>
157+
<configuration>
158+
<release>9</release>
159+
<compileSourceRoots>
160+
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
161+
</compileSourceRoots>
162+
<multiReleaseOutput>true</multiReleaseOutput>
163+
</configuration>
164+
</execution>
165+
</executions>
150166
</plugin>
151167
<plugin>
152168
<groupId>org.apache.maven.plugins</groupId>
@@ -160,7 +176,8 @@
160176
<configuration>
161177
<archive>
162178
<manifestEntries>
163-
<Automatic-Module-Name>org.cryptomator.cryptolib</Automatic-Module-Name>
179+
<Multi-Release>true</Multi-Release>
180+
<Sealed>true</Sealed>
164181
</manifestEntries>
165182
</archive>
166183
</configuration>

src/main/java9/module-info.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module org.cryptomator.cryptolib {
2+
requires org.cryptomator.siv;
3+
requires com.google.gson;
4+
requires com.google.common;
5+
requires org.slf4j;
6+
7+
exports org.cryptomator.cryptolib;
8+
exports org.cryptomator.cryptolib.api;
9+
exports org.cryptomator.cryptolib.common;
10+
11+
opens org.cryptomator.cryptolib.common to com.google.gson;
12+
}

0 commit comments

Comments
 (0)