@@ -4,32 +4,31 @@ archivesBaseName = 'openjavacard-tool'
4
4
sourceCompatibility = 1.8
5
5
6
6
dependencies {
7
- compile project(' :cap-file' )
8
- compile project(' :cap-model' )
9
- compile project(' :jackson' )
7
+ api project(' :cap-file' )
8
+ api project(' :cap-model' )
9
+ api project(' :jackson' )
10
10
11
- compile project(' :globalplatform' )
12
- compile project(' :packaging' )
11
+ api project(' :globalplatform' )
12
+ api project(' :packaging' )
13
13
14
14
// https://mvnrepository.com/artifact/com.beust/jcommander
15
- compile group : ' com.beust' , name : ' jcommander' , version : ' 1.72'
15
+ implementation group : ' com.beust' , name : ' jcommander' , version : ' 1.72'
16
16
17
17
// https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml
18
- compile group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-xml' , version : ' 2.9.8'
18
+ implementation group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-xml' , version : ' 2.9.8'
19
19
// https://mvnrepository.com/artifact/org.codehaus.woodstox/woodstox-core-asl
20
- compile group : ' com.fasterxml.woodstox' , name : ' woodstox-core' , version : ' 5.2.0'
20
+ implementation group : ' com.fasterxml.woodstox' , name : ' woodstox-core' , version : ' 5.2.0'
21
21
22
22
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
23
- compile group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.25'
23
+ implementation group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.25'
24
24
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
25
- compile group : ' org.slf4j' , name : ' slf4j-simple' , version : ' 1.7.25'
25
+ implementation group : ' org.slf4j' , name : ' slf4j-simple' , version : ' 1.7.25'
26
26
27
27
// https://mvnrepository.com/artifact/junit/junit
28
- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
28
+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
29
29
}
30
30
31
31
jar {
32
- destinationDir = file(' ./build/jar/' )
33
32
manifest {
34
33
attributes(
35
34
' Main-Class' : ' org.openjavacard.tool.main.Main'
39
38
40
39
task fatJar (type : Jar ) {
41
40
manifest. from jar. manifest
42
- destinationDir = file(' ./build/jar/' )
43
- classifier = ' fat'
41
+ baseName = archivesBaseName + ' -fat'
44
42
from {
45
- configurations. runtime . collect { it. isDirectory() ? it : zipTree(it) }
43
+ configurations. runtimeClasspath . collect { it. isDirectory() ? it : zipTree(it) }
46
44
} {
47
45
exclude " META-INF/*.SF"
48
46
exclude " META-INF/*.DSA"
0 commit comments