-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
176 lines (149 loc) · 7.37 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
plugins {
id 'java'
id 'idea'
id 'eclipse'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
ext {
set 'openjfxVersion', '15.0.1' // '11.0.2'
set 'jfxtrasVersion', '15-r1' //'10.0-r1'
set 'jfoenixVersion', '9.0.10'
set 'datafxVersion', '8.0.1'
set 'jacksonVersion', '2.11.0'
set 'mapstructVersion', '1.4.1.Final'
set 'springCloudVersion', '2020.0.0'
}
group = 'com.github.eltonsandre'
version = '0.0.1-SNAPSHOT'
mainClassName = "${group}.app.StockApplication"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = "UTF-8"
compileJava.dependsOn(processResources)
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
compileJava.options.compilerArgs = ['-parameters', '-Amapstruct.defaultComponentModel=spring']
compileTestJava.options.encoding = compileJava.options.encoding
compileTestJava.options.compilerArgs = compileJava.options.compilerArgs
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'http://repo.maven.apache.org/maven2' }
}
dependencies {
// developmentOnly 'org.springframework.boot:spring-boot-devtools'
['annotationProcessor', 'compileOnly', 'testAnnotationProcessor', 'testCompileOnly']
.each { conf -> add(conf, 'org.projectlombok:lombok') }
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor',
"org.mapstruct:mapstruct-processor:$mapstructVersion"
implementation "org.openjfx:javafx-controls:$openjfxVersion",
"org.openjfx:javafx-fxml:$openjfxVersion",
"org.openjfx:javafx-graphics:$openjfxVersion",
"com.jfoenix:jfoenix:$jfoenixVersion",
"io.datafx:datafx:$datafxVersion",
"io.datafx:flow:$datafxVersion",
'org.kordamp.ikonli:ikonli-javafx:11.5.0',
'org.kordamp.ikonli:ikonli-material-pack:11.5.0',
'org.kordamp.ikonli:ikonli-fontawesome5-pack:11.5.0',
"org.jfxtras:jfxtras-common:$jfxtrasVersion",
"org.jfxtras:jfxtras-fxml:$jfxtrasVersion",
"org.jfxtras:jfxtras-font-roboto:$jfxtrasVersion",
"org.jfxtras:jfxtras-menu:$jfxtrasVersion",
"org.jfxtras:jfxtras-controls:$jfxtrasVersion",
'io.vavr:vavr:0.10.3',
"org.apache.commons:commons-lang3:3.9",
"org.apache.commons:commons-collections4:4.4",
// 'org.flywaydb:flyway-core",
'org.springframework.boot:spring-boot-starter',
'org.springframework.boot:spring-boot-starter-data-jpa',
'org.springframework.boot:spring-boot-starter-validation',
'org.mapstruct:mapstruct-jdk8:1.3.1.Final',
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
"com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion",
"com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
runtimeOnly 'com.h2database:h2',
'mysql:mysql-connector-java'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
clean.doFirst {
delete 'build', 'out', 'dist'
}
test {
useJUnitPlatform()
}
applicationDefaultJvmArgs = [
'--module-path', '/opt/java/javafx-sdk-15.0.1/lib',
'--add-modules', 'javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web',
'--add-opens', 'javafx.fxml/javafx.fxml=ALL-UNNAMED',
'--add-opens', 'javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED',
'--add-opens', 'javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED',
'--add-opens', 'javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.event=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.binding=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED',
]
javafx {
version = openjfxVersion
modules = ['javafx.base', 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.media', 'javafx.swing', 'javafx.web']
}
//jlink {
// launcher {
// name = project.group
// }
//}
/*
applicationDefaultJvmArgs = [
'--module-path','/opt/java/javafx-sdk-15.0.1/lib'
'--add-modules','javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web" --add-opens="javafx.fxml/javafx
.fxml=ALL-UNNAMED'
'--add-opens', 'javafx.base/com.sun.javafx.beans=ALL-UNNAMED',
'--add-opens', 'javafx.base/com.sun.javafx.binding=ALL-UNNAMED',
'--add-opens', 'javafx.base/com.sun.javafx.collections=ALL-UNNAMED',
'--add-opens', 'javafx.base/com.sun.javafx.event=ALL-UNNAMED',
'--add-opens', 'javafx.base/com.sun.javafx.logging=ALL-UNNAMED',
'--add-opens', 'javafx.base/com.sun.javafx.reflect=ALL-UNNAMED',
'--add-opens', 'javafx.base/com.sun.javafx.runtime=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.application=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.scene.layout=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED',
'--add-opens', 'javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED',
'--add-opens', 'javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED',
'--add-opens', 'javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED',
]
*/
/* VM options in DEBUG
--module-path="/opt/java/javafx-sdk-15.0.1/lib"
--add-modules="javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web" --add-opens="javafx.fxml/javafx.fxml=ALL-UNNAMED"
--add-opens="javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED"
--add-opens="javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED"
--add-opens="javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED"
--add-exports="javafx.base/com.sun.javafx.event=ALL-UNNAMED"
--add-exports="javafx.base/com.sun.javafx.binding=ALL-UNNAMED"
--add-exports="javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED"
--add-exports="javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED"
--add-exports="javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED"
--add-exports="javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED"
*/