forked from controlsfx/controlsfx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (68 loc) · 2.19 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
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply from : '../mavenPublish.gradle'
Properties cfg = new Properties()
cfg.load(new FileInputStream("$rootDir/controlsfx-build.properties"))
ext {
artifact_suffix = cfg.artifact_suffix
specification_title = cfg.controlsfx_specification_title //'Java 8u20'
specification_version = cfg.controlsfx_specification_version //'8.20.7'
controlsfx_name = 'controlsfx'
fxsampler_name = 'fxsampler'
fxsampler_version = cfg.fxsampler_specification_version + artifact_suffix
fxsampler_mainClass = 'fxsampler.FXSampler'
}
group = 'org.controlsfx'
version = specification_version + artifact_suffix
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:[4,)'
testCompile 'org.testfx:testfx-core:4.0.10-alpha'
testCompile 'de.sandec:JMemoryBuddy:0.1.3'
testRuntime 'org.testfx:openjfx-monocle:1.8.0_20'
}
test {
if (!project.hasProperty("headless") || project.headless == "true") {
// execute TestFX Tests headless -- switch off by using ./gradlew -Pheadless=false
systemProperty("testfx.robot", "glass")
systemProperty("testfx.headless", "true")
systemProperty("prism.order", "sw")
systemProperty("prism.text", "t2k")
}
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
compileJava {
options.encoding = "UTF-8"
options.incremental = true
}
task sourceJar(type: Jar) {
from sourceSets.main.java
from sourceSets.main.resources
classifier = 'sources'
}
task javadocJar(type: Jar) {
dependsOn javadoc
from javadoc.destinationDir
classifier = 'javadoc'
}
artifacts {
archives sourceJar
archives javadocJar
}
// Used in Travis
task getVersion {
doLast {
println "$project.version"
}
}
}