-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.9 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id 'java-library'
id 'org.openjfx.javafxplugin' version "$jfxPlugin"
id 'com.vanniktech.maven.publish' version "$mavenPublish"
}
group 'io.github.palexdev'
version "$vfx"
repositories {
mavenCentral()
}
dependencies {
// Deps
api "io.github.palexdev:mfxcore:$mfxcore"
api "io.github.palexdev:mfxeffects:$mfxeffects"
api "io.github.palexdev:mfxresources:$mfxresources"
// Test Deps
testImplementation "org.openjdk.jmh:jmh-core:$jmh"
testAnnotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:$jmh"
testImplementation platform("org.junit:junit-bom:$junit")
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation "org.testfx:testfx-core:$testfx"
testImplementation "org.testfx:testfx-junit5:$testfx"
testImplementation("io.github.palexdev:scenicview:$scenicView") {
exclude(group: "org.openjfx")
}
testImplementation "net.datafaker:datafaker:$dataFaker"
testImplementation "com.google.code.gson:gson:$gson"
}
java {
sourceCompatibility = "$jdk"
targetCompatibility = "$jdk"
withSourcesJar()
withJavadocJar()
tasks.withType(Jar).each { it.archiveBaseName.set("virtualizedfx") }
}
test {
// Because the new TestFX is garbage :)
jvmArgs += [
'--add-opens', 'javafx.graphics/com.sun.javafx.application=ALL-UNNAMED'
]
useJUnitPlatform()
filter {
excludeTestsMatching "JMH*"
}
}
javafx {
version = "$jfx"
modules = ['javafx.controls', 'javafx.fxml']
configurations = ["compileOnly", "testImplementation"]
}
configurations {
// Remove vanniktech non-sense
gradle.taskGraph.whenReady { graph ->
if (graph.hasTask(plainJavadocJar)) {
plainJavadocJar.enabled = false
}
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
}