-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
87 lines (71 loc) · 2.09 KB
/
build.gradle.kts
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
plugins {
java
id("java-library")
maven
idea
id("org.openjfx.javafxplugin") version "0.0.7"
}
allprojects {
group = "de.novacyb.temporal"
version = "0.1.3.0-SNAPSHOT"
// version config
val openJfxVersion = "13.0.1"
val reactfxVersion = "2.0-M5"
val troveVersion = "3.0.3"
val jUnitVersion = "5.4.2"
val jUnitPlatformVersion = "1.4.2"
// os selector
val currentOS = org.gradle.internal.os.OperatingSystem.current()
var platform = ""
when {
currentOS.isWindows -> platform = "win"
currentOS.isLinux -> platform = "linux"
currentOS.isMacOsX -> platform = "mac"
}
// version configuration
extra.apply{
set("openJfxPath", System.getenv("PATH_TO_FX"))
set("openJfxVersion", openJfxVersion)
set("openJfxSpecificVersion", "$openJfxVersion:$platform")
set("reactfxVersion",reactfxVersion)
set("troveVersion", troveVersion)
set("jUnitVersion", jUnitVersion)
set("jUnitPlatformVersion", jUnitPlatformVersion)
}
repositories {
mavenCentral()
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
subprojects {
apply(plugin = "java")
apply(plugin = "maven")
apply(plugin = "idea")
apply(plugin = "org.openjfx.javafxplugin")
apply(plugin = "java-library")
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}
javafx {
modules("javafx.controls", "javafx.fxml", "javafx.graphics")
}
tasks {
"test"(Test::class) {
// enable JUnit Platform (a.k.a. JUnit 5) support
useJUnitPlatform()
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "512m"
// Fail the 'test' task on the first test failure
failFast = false
}
}
}