forked from controlsfx/controlsfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (53 loc) · 1.57 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
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'osgi'
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,)'
}
test {
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
}
}