-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
136 lines (113 loc) · 3.85 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
plugins {
id 'java'
id 'application'
id 'nebula.release' version '6.0.0'
id 'org.openjfx.javafxplugin' version '0.0.8'
}
// Define the main class for the application
mainClassName = 'veriblock.wallet.Main'
repositories {
mavenLocal()
jcenter()
maven { url "http://artifactory.veriblock.com/artifactory/libs-snapshot-local/"}
maven { url "http://artifactory.veriblock.com/artifactory/libs-release-local/"}
maven { url 'http://artifactory.veriblock.com/artifactory/libs-release/' }
}
dependencies {
testImplementation 'junit:junit:4.12'
runtime "org.codehaus.groovy:groovy:2.4.12"
compile group: 'veriblock', name: 'veriblock-core', version: '0.4.13-rc.11'
compile group: 'veriblock', name: 'nodecore-grpc', version: '0.4.13-rc.11'
// Logging
compile 'ch.qos.logback:logback-classic:1.2.3'
// Utils
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'joda-time', name: 'joda-time', version: '2.9.9'
compile group: 'org.reflections', name: 'reflections', version: '0.9.11'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compile 'io.netty:netty-tcnative-boringssl-static:2.0.7.Final'
compile 'de.jensd:fontawesomefx:8.9'
// Database
compile group: 'com.j256.ormlite', name: 'ormlite-core', version: '5.1'
compile group: 'com.j256.ormlite', name: 'ormlite-jdbc', version: '5.1'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.23.1'
// GRPC
compile 'io.grpc:grpc-api:1.29.0'
compile 'io.grpc:grpc-protobuf:1.29.0'
compile 'io.grpc:grpc-protobuf-lite:1.29.0'
compile 'io.grpc:grpc-stub:1.29.0'
compile 'io.grpc:grpc-netty-shaded:1.29.0'
compile 'com.google.protobuf:protobuf-java:3.5.1'
compile 'com.google.api.grpc:proto-google-common-protos:1.0.0'
compile 'org.openjfx:javafx-controls:11.0.2:win'
compile 'org.openjfx:javafx-fxml:11.0.2:win'
compile 'org.openjfx:javafx-graphics:11.0.2:win'
compile 'org.openjfx:javafx-media:11.0.2:win'
compile 'org.openjfx:javafx-base:11.0.2:win'
compile 'org.openjfx:javafx-controls:11.0.2:linux'
compile 'org.openjfx:javafx-fxml:11.0.2:linux'
compile 'org.openjfx:javafx-graphics:11.0.2:linux'
compile 'org.openjfx:javafx-media:11.0.2:linux'
compile 'org.openjfx:javafx-base:11.0.2:linux'
compile 'org.openjfx:javafx-controls:11.0.2:mac'
compile 'org.openjfx:javafx-fxml:11.0.2:mac'
compile 'org.openjfx:javafx-graphics:11.0.2:mac'
compile 'org.openjfx:javafx-media:11.0.2:mac'
compile 'org.openjfx:javafx-base:11.0.2:mac'
constraints {
implementation("org.apache.logging.log4j:2.15.0") {
because("Force update log4j to fix vulnerability CVE-2021-44228")
}
}
}
startScripts {
defaultJvmOpts = ["-Xmx3g"]
windowsStartScriptGenerator.template = resources.text.fromFile("windowsStartScript.txt")
unixStartScriptGenerator.template = resources.text.fromFile("unixStartScript.txt")
}
processResources {
from ('src/main/java') {
include '**/*.fxml'
}
}
javafx {
mainClassName = 'veriblock.wallet.Main'
applicationName = 'veriblock-wallet-ui'
version = '12'
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.media', "javafx.base" ]
configuration = 'compileOnly'
}
jar {
manifest {
attributes 'Name': 'veriblock/wallet',
'Specification-Title': 'VeriBlock Wallet',
'Specification-Version': version.toString().split(/-/)[0],
'Specification-Vendor': 'VeriBlock Foundation',
'Implementation-Title': 'VeriBlock Wallet',
'Implementation-Version': version,
'Implementation-Vendor': 'VeriBlock Foundation'
}
}
nebulaRelease {
addReleaseBranchPattern(/(release(-|\/))?\d+(.\d+)?(.\d+)?/)
}
ext {
println "##teamcity[buildNumber \'${version}\']"
}
distributions {
main {
contents {
from("${rootProject.projectDir}/dist") {
include("README.md")
include("start.bat")
into(".")
}
}
}
}