Skip to content

Commit

Permalink
export shaded bouncycastle packages that are exposed to public API
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed May 20, 2021
1 parent 5527636 commit b8a7361
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@

<!-- test dependencies -->
<junit.version>5.7.1</junit.version>
<mockito.version>3.7.7</mockito.version>
<jmh.version>1.27</jmh.version>
<mockito.version>3.10.0</mockito.version>
<jmh.version>1.31</jmh.version>
<hamcrest.version>2.2</hamcrest.version>
<guava.version>30.1-jre</guava.version>
<guava.version>30.1.1-jre</guava.version>
</properties>

<dependencies>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/cryptomator/siv/SivMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import javax.crypto.IllegalBlockSizeException;
import javax.crypto.SecretKey;
import java.nio.ByteBuffer;
import java.security.Provider;
import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.cryptomator.siv.org.bouncycastle.crypto;

/**
* module-info will be evaluated before maven-shade-plugin, so we need this placeholder
* to avoid complaints about this package being empty.
*/
class Placeholder {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.cryptomator.siv.org.bouncycastle.crypto.macs;

/**
* module-info will be evaluated before maven-shade-plugin, so we need this placeholder
* to avoid complaints about this package being empty.
*/
class Placeholder {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.cryptomator.siv.org.bouncycastle.crypto.modes;

/**
* module-info will be evaluated before maven-shade-plugin, so we need this placeholder
* to avoid complaints about this package being empty.
*/
class Placeholder {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.cryptomator.siv.org.bouncycastle.crypto.paddings;

/**
* module-info will be evaluated before maven-shade-plugin, so we need this placeholder
* to avoid complaints about this package being empty.
*/
class Placeholder {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.cryptomator.siv.org.bouncycastle.crypto.params;

/**
* module-info will be evaluated before maven-shade-plugin, so we need this placeholder
* to avoid complaints about this package being empty.
*/
class Placeholder {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.cryptomator.siv.org.bouncycastle.util;

/**
* module-info will be evaluated before maven-shade-plugin, so we need this placeholder
* to avoid complaints about this package being empty.
*/
class Placeholder {
}
9 changes: 8 additions & 1 deletion src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
module org.cryptomator.siv {
exports org.cryptomator.siv;
requires static org.bouncycastle.provider;

exports org.cryptomator.siv;
exports org.cryptomator.siv.org.bouncycastle.crypto;
exports org.cryptomator.siv.org.bouncycastle.crypto.macs;
exports org.cryptomator.siv.org.bouncycastle.crypto.modes;
exports org.cryptomator.siv.org.bouncycastle.crypto.paddings;
exports org.cryptomator.siv.org.bouncycastle.crypto.params;
exports org.cryptomator.siv.org.bouncycastle.util;
}

0 comments on commit b8a7361

Please sign in to comment.