-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
92 lines (76 loc) · 3.26 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
84
85
86
87
88
89
90
91
92
plugins {
id 'java'
}
group 'com.radynamics.DalliPay'
version '1.8.1'
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
dependencies {
implementation("org.glassfish.jaxb:jaxb-runtime:2.3.2")
implementation 'com.opencsv:opencsv:5.7.1'
implementation group: 'org.glassfish.jersey.core', name: 'jersey-client', version: '3.0.1'
implementation group: 'org.glassfish.jersey.inject', name: 'jersey-hk2', version: '3.0.1'
implementation group: 'org.json', name: 'json', version: '20210307'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.15'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.9.1'
implementation group: 'org.xrpl', name: 'xrpl4j-core', version: '3.2.1'
implementation group: 'org.xrpl', name: 'xrpl4j-client', version: '3.2.1'
implementation group: 'wf.bitcoin', name: 'bitcoin-rpc-client', version: '1.2.4'
implementation 'com.formdev:flatlaf:3.0'
implementation 'com.formdev:flatlaf-extras:3.0'
implementation 'com.formdev:svgSalamander:1.1.3'
implementation 'com.github.lgooddatepicker:LGoodDatePicker:11.2.1'
implementation 'com.alexandriasoftware.swing:jsplitbutton:1.3.1'
implementation 'io.github.willena:sqlite-jdbc:3.38.1'
implementation group: 'com.moandjiezana.toml', name: 'toml4j', version: '0.7.2'
implementation 'com.vdurmont:semver4j:3.1.0'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.1")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation group: 'org.xmlunit', name: 'xmlunit-matchers', version: '2.8.2'
testImplementation group: 'org.xmlunit', name: 'xmlunit-core', version: '2.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
task createProperties() {
doLast {
File propertiesFile = file('src/main/resources/version.properties')
Properties p = new Properties()
if (propertiesFile.exists()) {
propertiesFile.withWriter { w ->
p['version'] = project.version.toString()
p.store w, null
}
} else {
p['version'] = project.version.toString()
Writer w = new FileWriter(propertiesFile, false)
p.store w, null
}
// copy needed, otherwise the bean VersionController can't load the file at startup when running complete-app tests.
copy {
from "src/main/resources/version.properties"
into "bin/main/"
}
}
}
classes {
dependsOn createProperties
}
task createFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.radynamics.dallipay.Main'
}
archiveFileName = 'DalliPay.jar'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
with jar
}