Skip to content

Commit d01e553

Browse files
Upgrade lazysodium and jni, drop jcenter
This commit removes the dependency on the JCenter repository, which was discontinued and is now in read-only mode.
1 parent 9f93b79 commit d01e553

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ext {
3030
// In this section you declare where to find the dependencies of your project
3131
repositories {
3232
mavenCentral()
33-
jcenter() // TODO: Remove
3433
}
3534

3635
// In this section you declare the dependencies for your production and test code
@@ -57,8 +56,8 @@ dependencies {
5756
// Test dependencies
5857
testImplementation 'org.slf4j:slf4j-simple:[1.7,1.8)'
5958
testImplementation 'junit:junit:4.12'
60-
testImplementation 'com.goterl.lazycode:lazysodium-java:[3.3,4)'
61-
testImplementation 'net.java.dev.jna:jna:[5,6)'
59+
testImplementation 'com.goterl:lazysodium-java:5.0.1'
60+
testImplementation 'net.java.dev.jna:jna:5.8.0'
6261
}
6362

6463
test {

src/test/java/org/saltyrtc/client/tests/LazysodiumCryptoInstance.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
*/
88
package org.saltyrtc.client.tests;
99

10-
import com.goterl.lazycode.lazysodium.LazySodiumJava;
11-
import com.goterl.lazycode.lazysodium.SodiumJava;
12-
import com.goterl.lazycode.lazysodium.interfaces.Box;
10+
import com.goterl.lazysodium.LazySodiumJava;
11+
import com.goterl.lazysodium.SodiumJava;
12+
import com.goterl.lazysodium.interfaces.Box;
1313
import org.saltyrtc.client.annotations.NonNull;
1414
import org.saltyrtc.client.crypto.CryptoException;
1515
import org.saltyrtc.client.crypto.CryptoInstance;
1616
import org.saltyrtc.client.crypto.CryptoProvider;
1717

18-
import static com.goterl.lazycode.lazysodium.interfaces.Box.BEFORENMBYTES;
19-
import static com.goterl.lazycode.lazysodium.interfaces.Box.MACBYTES;
18+
import static com.goterl.lazysodium.interfaces.Box.BEFORENMBYTES;
19+
import static com.goterl.lazysodium.interfaces.Box.MACBYTES;
2020

2121
/**
2222
* An implementation of the CryptoInstance interface for lazysodium-java.

src/test/java/org/saltyrtc/client/tests/LazysodiumCryptoProvider.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88
package org.saltyrtc.client.tests;
99

10-
import com.goterl.lazycode.lazysodium.LazySodiumJava;
11-
import com.goterl.lazycode.lazysodium.SodiumJava;
12-
import com.goterl.lazycode.lazysodium.interfaces.Box;
13-
import com.goterl.lazycode.lazysodium.interfaces.SecretBox;
10+
import com.goterl.lazysodium.LazySodiumJava;
11+
import com.goterl.lazysodium.SodiumJava;
12+
import com.goterl.lazysodium.interfaces.Box;
13+
import com.goterl.lazysodium.interfaces.SecretBox;
1414
import org.saltyrtc.client.annotations.NonNull;
1515
import org.saltyrtc.client.crypto.CryptoException;
1616
import org.saltyrtc.client.crypto.CryptoInstance;

0 commit comments

Comments
 (0)