-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
108 lines (87 loc) · 3.83 KB
/
build.gradle
File metadata and controls
108 lines (87 loc) · 3.83 KB
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
plugins {
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
shadowJar {
mergeServiceFiles()
}
application {
mainClassName = 'org.umlreviewer.MyAppRunKt'
}
javafx {
modules = ['javafx.controls', 'javafx.media', 'javafx.graphics', 'javafx.web', 'javafx.swing']
}
group 'org.umlreviewer'
version '1.0.1'
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } // for TornadoFX 2 snapshot
mavenCentral()
jcenter()
}
ext {
ikonliVersion = '12.2.0'
googleDriveApiVersion = '1.31.0'
openjfxVersion = '13-ea+8'
pdfboxVersion = '2.0.21'
}
test {
useJUnitPlatform()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.10"
implementation "no.tornado:tornadofx:2.0.0-SNAPSHOT"
implementation "org.openjfx:javafx:${openjfxVersion}"
implementation "org.openjfx:javafx-base:${openjfxVersion}"
implementation "org.openjfx:javafx-controls:${openjfxVersion}"
implementation "org.openjfx:javafx-web:${openjfxVersion}"
implementation "org.openjfx:javafx-swing:${openjfxVersion}"
implementation 'org.controlsfx:controlsfx:11.1.0'
implementation 'org.junit.jupiter:junit-jupiter:5.7.0'
implementation 'org.junit.jupiter:junit-jupiter:5.7.0'
compile 'commons-io:commons-io:2.8.0'
compile 'org.apache.commons:commons-lang3:3.11'
// font icons
implementation "org.kordamp.ikonli:ikonli-javafx:${ikonliVersion}"
implementation "org.kordamp.ikonli:ikonli-fontawesome-pack:${ikonliVersion}"
implementation "org.kordamp.ikonli:ikonli-fontawesome5-pack:${ikonliVersion}"
implementation "org.kordamp.ikonli:ikonli-bootstrapicons-pack:${ikonliVersion}"
// for diagram extractor
compile group: 'org.apache.pdfbox', name: 'pdfbox', version: pdfboxVersion
compile group: 'org.apache.pdfbox', name: 'fontbox', version: pdfboxVersion
// pdf viewer/annotator swing component @see https://github.com/pcorless/icepdf
compile files('./libs/icepdf-core-6.3.3-SNAPSHOT.jar')
compile files('./libs/icepdf-viewer-6.3.3-SNAPSHOT.jar')
// git sync
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.11.0.202103091610-r'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit.ssh.jsch', version: '5.11.0.202103091610-r'
// statistics
implementation 'org.jfree:org.jfree.chart.fx:2.0.1'
implementation 'org.jfree:org.jfree.svg:4.2'
implementation 'de.rototor.pdfbox:graphics2d:0.31'
// google disc sync
compile "com.google.api-client:google-api-client:${googleDriveApiVersion}"
compile "com.google.oauth-client:google-oauth-client-jetty:${googleDriveApiVersion}"
compile "com.google.apis:google-api-services-drive:v3-rev20210315-1.31.0"
}
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
run {
applicationDefaultJvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
'--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED',
]
jvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
'--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED',
]
}