-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (68 loc) · 2.08 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.14'
id 'com.palantir.git-version' version '3.0.0' // for gitVersion()
id 'org.beryx.jlink' version '2.25.0'
// id 'com.gluonhq.client-gradle-plugin' version '0.1.42'
// id 'com.gluonhq.gluonfx-gradle-plugin' version '1.0.16'
}
group 'pro.javacard.nfc4pc'
version '230711-next'
repositories {
mavenLocal()
maven {
url 'https://javacard.pro/maven/'
}
maven {
url 'https://javacard.pro/maven/SNAPSHOTS/'
}
mavenCentral()
}
compileJava {
sourceCompatibility = '17'
targetCompatibility = '17'
}
javafx {
version = "20.0.1"
modules = ['javafx.controls', 'javafx.graphics', 'javafx.swing']
//configuration = 'compileOnly'
}
jlink {
launcher {
name = 'nfc4pc'
}
}
//gluonClient {
// reflectionList = ["pro.javacard.nfc4pc.MainWrapper"]
//}
application {
mainModule = "pro.javacard.nfc4pc"
mainClass = "pro.javacard.nfc4pc.MainWrapper"
}
jar {
manifest {
attributes 'Main-Class': application.mainClass
attributes 'Implementation-Version': gitVersion()
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation 'com.github.martinpaljak:apdu4j-pcsc:23.03.22-SNAPSHOT'
implementation 'com.dustinredmond.fxtrayicon:FXTrayIcon:4.0.1'
implementation 'org.slf4j:slf4j-simple:2.0.7'
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
implementation 'com.payneteasy:ber-tlv:1.0-11'
implementation 'com.google.zxing:core:3.5.1'
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:win"
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:mac"
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:linux"
runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:mac-aarch64"
}
test {
useJUnitPlatform()
}