This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
78 lines (63 loc) · 1.92 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'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
}
version = '0.0.0'
sourceCompatibility = 11
targetCompatibility = 11
test {
useJUnitPlatform()
minHeapSize = "128m"
maxHeapSize = "1024m"
// Headless test execution (true by default)
if (project.hasProperty("headless") ? project.headless : true) {
jvmArgs "-Dtestfx.robot=glass"
jvmArgs "-Dtestfx.headless=true"
jvmArgs "-Dprism.order=sw"
jvmArgs "-Dprism.text=t2k"
}
beforeTest {
descriptor -> logger.lifecycle("Running test: " + descriptor)
}
}
javafx {
modules = ['javafx.controls', 'javafx.fxml', 'javafx.web']
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "com.github.penemue:keap:0.3.0"
compile 'org.kordamp.ikonli:ikonli-javafx:11.1.0'
compile 'org.kordamp.ikonli:ikonli-fontawesome5-pack:11.1.0'
compile 'org.kordamp.ikonli:ikonli-material-pack:11.1.0'
compile 'org.codehaus.griffon:griffon-javafx:2.15.1'
compile 'org.controlsfx:controlsfx:11.0.0-RC2'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
testCompile "org.junit.jupiter:junit-jupiter-api:5.4.0"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.4.0"
testCompile "org.testfx:testfx-junit5:4.0.15-alpha"
testRuntime "org.testfx:openjfx-monocle:jdk-11+26"
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
}
task(runCLI, dependsOn: 'classes', type: JavaExec) {
main = 'app.arxivorg.ArxivOrgCLI'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
args "list"
args "today"
}
application {
mainClassName = 'app.arxivorg.ArxivOrg'
applicationDefaultJvmArgs = [
'--add-opens=javafx.base/com.sun.javafx.event=ALL-UNNAMED'
]
}
javadoc {
options.with {
links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
}
}