-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (66 loc) · 2.49 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
plugins {
id 'java'
}
group 'com.radynamics.xrplservermgr'
version '0.2.3'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.19.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.19.0'
implementation group: 'com.github.mwiede', name: 'jsch', version: '0.2.17'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.vdurmont:semver4j:3.1.0'
implementation group: 'org.eclipse.jetty.websocket', name: 'websocket-client', version: '9.4.56.v20240826'
implementation group: 'net.coderazzi', name: 'tablefilter-swing', version: '5.5.4'
implementation 'com.formdev:flatlaf:3.4'
implementation 'com.formdev:flatlaf-extras:3.4'
implementation 'io.github.willena:sqlite-jdbc:3.45.1.0'
implementation group: 'com.microsoft', name: 'credential-secure-storage', version: '1.0.0'
}
test {
useJUnitPlatform()
}
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.xrplservermgr.Main'
}
archiveFileName = 'xrplservermgr.jar'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
{
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
//exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
with jar
}