Skip to content

Commit add034d

Browse files
committed
Gradle update fixes
1 parent cdc11c0 commit add034d

File tree

12 files changed

+54
-55
lines changed

12 files changed

+54
-55
lines changed

build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ repositories {
77
allprojects {
88
apply plugin: 'java'
99
apply plugin: 'idea'
10-
apply plugin: 'maven'
1110

1211
group 'org.openjavacard.tools'
1312
version '0.1-SNAPSHOT'
@@ -16,6 +15,11 @@ allprojects {
1615
mavenCentral()
1716
}
1817

18+
java {
19+
//withSourcesJar()
20+
//withJavadocJar()
21+
}
22+
1923
idea {
2024
module {
2125
downloadJavadoc = true

cap-file/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ archivesBaseName = 'openjavacard-cap-file'
44
sourceCompatibility = 1.8
55

66
dependencies {
7-
compile project(':common')
7+
api project(':common')
88

99
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
10-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
10+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
1111

12-
testCompile project(':cap-testing')
12+
testImplementation project(':cap-testing')
1313

1414
// https://mvnrepository.com/artifact/junit/junit
15-
testCompile group: 'junit', name: 'junit', version: '4.12'
15+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1616
}

cap-model/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ archivesBaseName = 'openjavacard-cap-model'
44
sourceCompatibility = 1.8
55

66
dependencies {
7-
compile project(':common')
8-
compile project(':cap-file')
7+
api project(':common')
8+
api project(':cap-file')
99

1010
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
11-
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.8'
11+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.8'
1212

1313
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
14-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
14+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
1515
// https://mvnrepository.com/artifact/junit/junit
16-
testCompile group: 'junit', name: 'junit', version: '4.12'
16+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1717
}

cap-testing/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sourceCompatibility = 1.8
55

66
dependencies {
77
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
8-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
8+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
99
// https://mvnrepository.com/artifact/junit/junit
10-
testCompile group: 'junit', name: 'junit', version: '4.12'
10+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1111
}

common/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ sourceCompatibility = 1.8
55

66
dependencies {
77
// https://mvnrepository.com/artifact/commons-codec/commons-codec
8-
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
8+
implementation group: 'commons-codec', name: 'commons-codec', version: '1.11'
99
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
10-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
10+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
1111
// https://mvnrepository.com/artifact/junit/junit
12-
testCompile group: 'junit', name: 'junit', version: '4.12'
12+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1313
}

globalplatform/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ archivesBaseName = 'openjavacard-globalplatform'
44
sourceCompatibility = 1.8
55

66
dependencies {
7-
compile project(':common')
8-
compile project(':cap-file')
7+
api project(':common')
8+
api project(':cap-file')
99

1010
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk16
11-
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.59'
11+
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.59'
1212
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
13-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
13+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
1414
// https://mvnrepository.com/artifact/junit/junit
15-
testCompile group: 'junit', name: 'junit', version: '4.12'
15+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1616
}

jackson/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ archivesBaseName = 'openjavacard-jackson'
44
sourceCompatibility = 1.8
55

66
dependencies {
7-
compile project(':common')
8-
compile project(':globalplatform')
7+
api project(':common')
8+
api project(':globalplatform')
99

1010
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
11-
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.8'
11+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.10'
1212
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
13-
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
13+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.10'
1414
// https://mvnrepository.com/artifact/junit/junit
15-
testCompile group: 'junit', name: 'junit', version: '4.12'
15+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1616
}

packaging/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ archivesBaseName = 'openjavacard-packaging'
44
sourceCompatibility = 1.8
55

66
dependencies {
7-
compile project(':common')
8-
compile project(':globalplatform')
7+
api project(':common')
8+
api project(':globalplatform')
99

1010
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
11-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
11+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
1212
// https://mvnrepository.com/artifact/junit/junit
13-
testCompile group: 'junit', name: 'junit', version: '4.12'
13+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1414
}

run-debug.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
home=`dirname $0`
3-
java -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG -jar $home/tool/build/jar/openjavacard-tool-0.1-SNAPSHOT-fat.jar "$@"
3+
java -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG -jar $home/tool/build/libs/openjavacard-tool-fat-0.1-SNAPSHOT.jar "$@"

run-trace.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
home=`dirname $0`
3-
java -Dorg.slf4j.simpleLogger.defaultLogLevel=TRACE -jar $home/tool/build/jar/openjavacard-tool-0.1-SNAPSHOT-fat.jar "$@"
3+
java -Dorg.slf4j.simpleLogger.defaultLogLevel=TRACE -jar $home/tool/build/libs/openjavacard-tool-fat-0.1-SNAPSHOT.jar "$@"

testbench/build.gradle

+6-9
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ archivesBaseName = 'openjavacard-testbench'
44
sourceCompatibility = 1.8
55

66
dependencies {
7-
compile project(':cap-file')
8-
compile project(':globalplatform')
7+
api project(':cap-file')
8+
api project(':globalplatform')
99

1010
// https://mvnrepository.com/artifact/com.beust/jcommander
11-
compile group: 'com.beust', name: 'jcommander', version: '1.72'
11+
implementation group: 'com.beust', name: 'jcommander', version: '1.72'
1212
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
13-
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
13+
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
1414
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
15-
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
15+
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
1616
// https://mvnrepository.com/artifact/junit/junit
17-
testCompile group: 'junit', name: 'junit', version: '4.12'
17+
testImplementation group: 'junit', name: 'junit', version: '4.12'
1818
}
1919

2020
jar {
21-
destinationDir = file('./build/jar/')
2221
manifest {
2322
attributes(
2423
'Main-Class': 'org.openjavacard.testbench.main.Main'
@@ -28,8 +27,6 @@ jar {
2827

2928
task fatJar(type: Jar) {
3029
manifest.from jar.manifest
31-
destinationDir = file('./build/jar/')
32-
classifier = 'fat'
3330
from {
3431
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
3532
} {

tool/build.gradle

+13-15
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,31 @@ archivesBaseName = 'openjavacard-tool'
44
sourceCompatibility = 1.8
55

66
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')
1010

11-
compile project(':globalplatform')
12-
compile project(':packaging')
11+
api project(':globalplatform')
12+
api project(':packaging')
1313

1414
// 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'
1616

1717
// 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'
1919
// 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'
2121

2222
// 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'
2424
// 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'
2626

2727
// https://mvnrepository.com/artifact/junit/junit
28-
testCompile group: 'junit', name: 'junit', version: '4.12'
28+
testImplementation group: 'junit', name: 'junit', version: '4.12'
2929
}
3030

3131
jar {
32-
destinationDir = file('./build/jar/')
3332
manifest {
3433
attributes(
3534
'Main-Class': 'org.openjavacard.tool.main.Main'
@@ -39,10 +38,9 @@ jar {
3938

4039
task fatJar(type: Jar) {
4140
manifest.from jar.manifest
42-
destinationDir = file('./build/jar/')
43-
classifier = 'fat'
41+
baseName = archivesBaseName + '-fat'
4442
from {
45-
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
43+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
4644
} {
4745
exclude "META-INF/*.SF"
4846
exclude "META-INF/*.DSA"

0 commit comments

Comments
 (0)