|
1 | 1 | plugins { |
2 | 2 | // Apply the java-library plugin to add support for Java Library |
3 | | - id 'java' |
4 | | - id 'maven' |
5 | | - id "com.github.johnrengelman.shadow" version "6.1.0" |
| 3 | + id 'java-library' |
| 4 | + id "com.github.johnrengelman.shadow" version "6.0.0" |
6 | 5 | } |
7 | 6 |
|
8 | 7 | jar { |
9 | | - manifest { |
10 | | - attributes( |
11 | | - 'Main-Class': 'icu.jnet.whatsjava.Main' |
12 | | - ) |
13 | | - } |
| 8 | + manifest { |
| 9 | + attributes 'Main-Class': 'icu.jnet.whatsjava.Main' |
| 10 | + } |
14 | 11 | } |
15 | 12 |
|
16 | 13 | repositories { |
17 | | - mavenCentral() |
| 14 | + // Use jcenter for resolving dependencies. |
| 15 | + // You can declare any Maven/Ivy/file repository here. |
| 16 | + jcenter() |
18 | 17 | } |
19 | 18 |
|
20 | 19 | dependencies { |
21 | | - // This dependency is used internally, and not exposed to consumers on their own compile classpath. |
22 | | - // https://mvnrepository.com/artifact/com.google.guava/guava |
23 | | - implementation group: 'com.google.guava', name: 'guava', version: '30.1.1-jre' |
| 20 | +// This dependency is used internally, and not exposed to consumers on their own compile classpath. |
| 21 | +implementation 'com.google.guava:guava:28.0-jre' |
24 | 22 |
|
25 | | - // https://mvnrepository.com/artifact/com.google.code.gson/gson |
26 | | - implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6' |
| 23 | +implementation 'com.google.code.gson:gson:2.8.6' |
27 | 24 |
|
28 | 25 | // https://mvnrepository.com/artifact/commons-codec/commons-codec |
29 | | - implementation group: 'commons-codec', name: 'commons-codec', version: '1.14' |
| 26 | +compile group: 'commons-codec', name: 'commons-codec', version: '1.14' |
30 | 27 |
|
31 | 28 | // https://mvnrepository.com/artifact/commons-io/commons-io |
32 | | - implementation group: 'commons-io', name: 'commons-io', version: '2.7' |
| 29 | +compile group: 'commons-io', name: 'commons-io', version: '2.7' |
33 | 30 |
|
34 | 31 | // https://mvnrepository.com/artifact/org.whispersystems/curve25519-java |
35 | | - implementation group: 'org.whispersystems', name: 'curve25519-java', version: '0.5.0' |
| 32 | +compile group: 'org.whispersystems', name: 'curve25519-java', version: '0.5.0' |
36 | 33 |
|
37 | 34 | // https://mvnrepository.com/artifact/com.google.zxing/core |
38 | | - implementation group: 'com.google.zxing', name: 'core', version: '3.4.0' |
39 | | - |
40 | | - // https://mvnrepository.com/artifact/at.favre.lib/hkdf |
41 | | - implementation group: 'at.favre.lib', name: 'hkdf', version: '1.0.2' |
42 | | - |
43 | | - // https://mvnrepository.com/artifact/com.neovisionaries/nv-websocket-client |
44 | | - implementation group: 'com.neovisionaries', name: 'nv-websocket-client', version: '2.10' |
| 35 | +compile group: 'com.google.zxing', name: 'core', version: '3.4.0' |
| 36 | + |
| 37 | +compile group: 'at.favre.lib', name: 'hkdf', version: '1.0.2' |
45 | 38 |
|
| 39 | +compile 'com.neovisionaries:nv-websocket-client:2.10' |
46 | 40 |
|
47 | | - // Use JUnit test framework |
48 | | - testImplementation 'junit:junit:4.12' |
| 41 | +// Use JUnit test framework |
| 42 | +testImplementation 'junit:junit:4.12' |
49 | 43 | } |
0 commit comments