forked from sshahine/JFoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
146 lines (129 loc) · 5.68 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
137
138
139
140
141
142
143
144
145
146
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
plugins {
id 'com.jfrog.bintray' version '1.7.3' apply false
id 'com.github.ben-manes.versions' version '0.15.0' apply false
id 'me.tatarka.retrolambda' version '3.7.0' apply false
id 'com.github.hierynomus.license' version '0.14.0' apply false
id 'net.nemerosa.versioning' version '2.6.1' apply false
id 'org.sonarqube' version '2.5'
id 'org.openjfx.javafxplugin' version '0.0.6' apply false
id 'maven'
}
project.version = '9.0.8-J12'
subprojects {
afterEvaluate {
apply plugin: 'java'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'net.nemerosa.versioning'
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'maven'
// end::autoModuleName[]
repositories {
jcenter()
mavenCentral()
maven { url 'http://sevntu-checkstyle.github.com/sevntu.checkstyle/maven2' }
}
sourceCompatibility = 12
targetCompatibility = 12
project.version = '9.0.8-J12'
tasks.withType(JavaCompile) {
options.incremental = true
}
configurations {
javafxCompile
}
dependencies {
javafxCompile "org.openjfx:javafx-base:12.0.1:win"
javafxCompile "org.openjfx:javafx-graphics:12.0.1:win"
javafxCompile "org.openjfx:javafx-controls:12.0.1:win"
javafxCompile "org.openjfx:javafx-fxml:12.0.1:win"
compile configurations.javafxCompile
}
// tag::autoModuleName[]
jar {
inputs.property("moduleName", moduleName)
manifest {
attributes('Automatic-Module-Name': moduleName)
}
}
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
apply from: rootProject.file('gradle/code-coverage.gradle')
apply from: rootProject.file('gradle/checkstyle.gradle')
apply from: rootProject.file('gradle/findbugs.gradle')
apply from: rootProject.file('gradle/javafx.gradle')
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs += [
'--module-path', classpath.asPath,
// For various usages of TraversalEngine
"--add-exports=javafx.graphics/com.sun.javafx.scene=com.jfoenix",
"--add-exports=javafx.graphics/com.sun.javafx.scene.text=com.jfoenix",
"--add-exports=javafx.graphics/com.sun.javafx.geom=com.jfoenix",
"--add-exports=javafx.graphics/com.sun.javafx.stage=com.jfoenix",
"--add-exports=javafx.graphics/com.sun.javafx.util=com.jfoenix",
"--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=com.jfoenix",
"--add-exports=javafx.graphics/jabafx=com.jfoenix",
"--add-exports=javafx.controls/javafx.scene.control.skin=com.jfoenix",
// For various behaviors across controls
"--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix",
"--add-exports=javafx.controls/com.sun.javafx.scene.control=com.jfoenix",
"--add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=com.jfoenix",
"--add-exports=javafx.base/com.sun.javafx.binding=com.jfoenix",
// For ReadOnlyUnbackedObservableList across files
// "--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
// For InputMap used in behavior classes
// "--add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED",
// For EventHandlerManager across files
"--add-exports=javafx.base/com.sun.javafx.event=com.jfoenix",
"--add-exports=javafx.base/com.sun.javafx.event=com.jfoenix",
// For MappingChange, NonIterableChange across files
// "--add-exports=javafx.base/com.sun.javafx.collections=ALL-UNNAMED",
// For VersionInfo in VersionChecker
// "--add-exports=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED",
// For WebPage in SVGLoader
// "--add-exports=javafx.web/com.sun.webkit=ALL-UNNAMED"
// "--add-modules=java.se.ee"
]
classpath = files()
}
}
compileTestJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'junit',
'--add-reads', "$moduleName=junit",
'--patch-module', "$moduleName=" + files(sourceSets.test.java.srcDirs).asPath,
]
classpath = files()
}
}
test {
inputs.property("moduleName", moduleName)
doFirst {
jvmArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'ALL-MODULE-PATH',
'--add-reads', "$moduleName=junit",
'--patch-module', "$moduleName=" + files(sourceSets.test.java.outputDir).asPath,
]
classpath = files()
}
}
}
}
wrapper {
gradleVersion = "4.10.3"
distributionType = Wrapper.DistributionType.ALL
}