-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
137 lines (108 loc) · 4.63 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.3/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
id 'application'
id 'eclipse'
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'org.beryx.jlink' version '2.12.0'
}
apply plugin : 'eclipse'
sourceCompatibility = 14
targetCompatibility = 14
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
maven{
url "https://www.javaxt.com/maven"
}
}
javafx {
version = "13"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing' ]
}
mainClassName = "$moduleName/application.CandyJar"
eclipse {
classpath {
file {
whenMerged {
entries.findAll { it.properties.kind.equals('lib') }.each {
it.entryAttributes['module'] = 'true'
}
}
}
}
}
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'CandyJar'
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.name == 'log4j') {
details.useTarget "org.slf4j:slf4j-api:2.0.0-alpha1"
}
}
resolutionStrategy {
force("org.slf4j:slf4j-api:2.0.0-alpha1")
force("org.slf4j:slf4j-simple:2.0.0-alpha1")
}
}
version = '3.0'
dependencies {
implementation('org.opencadc:jsky:1.0.0')
implementation ('org.openjdk.jol:jol-core:0.16') {
exclude module: 'sun'
exclude module: 'sun.misc'
}
// implementation ('org.openjdk.jol:jol-samples:0.16') {
// exclude module: 'sun'
// exclude module: 'sun.misc'
// }
implementation(group: 'javax.json', name: 'javax.json-api', version: '1.1')
implementation(group: 'org.glassfish', name: 'javax.json', version: '1.1')
implementation(group: 'de.gsi.chart', name: 'chartfx-chart', version: '11.1.5'){
exclude group: 'org.apache.xmlgraphics', module: 'batik-bridge'
exclude group: 'org.apache.xmlgraphics', module: 'batik-script'
exclude group: 'org.apache.xmlgraphics', module: 'batik-ext'
exclude group: 'xml-apis', module: 'xml-apis'
exclude group: 'xerces', module: 'xercesImpl'
exclude module: 'xalan'
}
implementation (group: 'com.mortennobel', name: 'java-image-scaling', version: '0.8.6')
implementation (group: 'commons-cli', name: 'commons-cli', version: '1.4')
implementation (group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.0-alpha1')
implementation (group: 'org.slf4j', name: 'slf4j-api', version: '2.0.0-alpha1')
implementation (group: 'org.webjars', name: 'font-awesome', version: '5.13.0')
implementation (group: 'net.kurobako', name: 'gesturefx', version: '0.7.1')
implementation (group: 'com.konghq', name: 'unirest-java', version: '3.13.3')
implementation (group: 'javaxt', name: 'javaxt-core', version: '1.10.6')
implementation (group: 'org.imgscalr', name: 'imgscalr-lib', version: '4.2')
}
application {
applicationDefaultJvmArgs = [
"--add-opens=javafx.base/com.sun.javafx.runtime=org.controlsfx.controls",
"--add-opens=javafx.base/com.sun.javafx.collections=org.controlsfx.controls",
"--add-opens=javafx.graphics/com.sun.javafx.css=org.controlsfx.controls",
"--add-opens=javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls",
"--add-opens=javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls",
"--add-opens=javafx.graphics/javafx.scene=org.controlsfx.controls",
"--add-opens=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls",
"--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls",
"--add-opens=javafx.controls/javafx.scene.control.skin=org.controlsfx.controls",
"--add-opens=javafx.controls/com.sun.javafx.scene.control.inputmap=org.controlsfx.controls",
"--add-opens=javafx.graphics/com.sun.javafx.css=org.controlsfx.controls",
'-Xmx16384m', '-Xmx16384m'
]
//mainClassName = project.findProperty("chooseMain").toString()
}
// if at some point this stupid --add-opens hack does not work, try by adding --add-exports for all the packages.