forked from cinchapi/concourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (70 loc) · 1.89 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
task wrapper(type: Wrapper) {
gradleVersion = '1.8'
}
def getVersion = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'bash', 'version.sh'
standardOutput = stdout
}
return stdout.toString().trim()
}
ext.globalVersion = getVersion()
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.nisgits.gradle:gradle-executable-jar-plugin:1.7.0'
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
repositories {
mavenCentral()
mavenLocal()
}
configurations {
all*.exclude group: 'org.cinchapi', module: 'concourse'
all*.exclude group: 'com.google.code.findbugs', module: 'annotations'
}
dependencies {
compile 'com.google.guava:guava:15.0'
compile 'org.mockito:mockito-all:1.9.5'
compile 'commons-codec:commons-codec:1.8'
compile 'com.google.code.findbugs:jsr305:2.0.1'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'ch.qos.logback:logback-classic:1.0.13'
compile 'joda-time:joda-time:2.2'
compile 'org.apache.thrift:libthrift:0.9.2'
compile 'commons-configuration:commons-configuration:1.9'
testCompile 'junit:junit:4.11'
}
group = 'org.cinchapi'
version = globalVersion
jar {
manifest {
attributes("Specificiation-Title": "Concourse", "Specificiation-Version": version, "Implementation-Version": version)
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc {
exclude "**/thrift/**"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
test {
exclude '**/*Suite.class'
}
}