forked from eclipse-vertx/vert.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (81 loc) · 1.84 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
apply plugin: 'java'
version = '0.1'
dependencies {
compile fileTree('lib/core').matching { include '*.jar' }
compile fileTree('lib/opt').matching { include '*.jar' }
testCompile fileTree('lib/tests').matching { include '*.jar' }
}
sourceSets {
main {
java {
resources.srcDirs = [file('src/main/java')]
}
}
test {
java.srcDirs = [file('src/tests/java'), file('src/tests/testapps/java')]
resources.srcDirs = [file('src/tests/java')]
}
}
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
jar {
version = ''
}
test {
useTestNG()
include "**/*Test.class"
exclude "**/redis/*.class"
systemProperty "java.util.logging.config.file", "conf/logging.properties"
}
task rubyTests(type: Exec, dependsOn: testClasses) {
group = 'verification'
workingDir = file('src/tests/ruby')
executable = file('src/tests/ruby/run_tests.sh')
}
distSpec = copySpec {
into('lib/java') {
from jar, configurations.compile
}
into('lib/ruby') {
from 'src/main/ruby'
include '**/*.rb'
}
into('lib/groovy') {
from 'src/main/groovy'
include '**/*.groovy'
}
into('conf') {
from "conf/logging.properties", "conf/hazelcast.xml"
}
into('docs/java/api') {
from javadoc
}
into('bin') {
from 'src/scripts/vertx'
fileMode = 0755
}
into('examples') {
from 'src/examples'
}
from 'LICENSE.txt', "README.md", "rel-notes/release-notes-${version}.txt"
}
// todo yardoc
task dist(type: Zip) {
description = 'Builds the distribution.'
group = 'build'
into("$project.name-$version") {
with distSpec
}
// todo add ruby-doc
}
task install(type: Sync) {
with distSpec
into '/Users/hans/java/vertx'
}
task tarDist(type: Tar) {
into("$project.name-$version") {
with distSpec
}
compression = org.gradle.api.tasks.bundling.Compression.GZIP
}
task wrapper(type: Wrapper)