forked from mesosphere-backup/dcos-cassandra-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (101 loc) · 3.01 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.7.6'
}
}
plugins {
id 'nebula.provided-base' version '3.0.3'
id 'com.github.ksoichiro.console.reporter' version '0.4.0'
}
apply from: "$rootDir/gradle/universe.gradle"
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'nebula.provided-base'
apply plugin: 'com.github.ksoichiro.console.reporter'
apply from: "$rootDir/gradle/spock.gradle"
group = 'com.mesosphere.dcos'
version = '1.0.16'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
}
ext {
cliVersion = "0.1.0"
serviceVersion = "2.5.0"
}
configure(subprojects - project('seedprovider')) {
repositories {
mavenLocal()
mavenCentral()
maven {
url "http://downloads.mesosphere.com/maven/"
}
maven {
url "http://downloads.mesosphere.com/maven-snapshot/"
}
}
ext {
dropwizardVer = '0.9.2'
guiceVer = '4.0'
mesosVer = '0.28.1'
junitVer = '4.12'
guavaVer = '19.0'
slf4jVer = '1.7.14'
curatorVer = '2.9.1'
dropwizardVer = '0.9.2'
logbackVer = '1.1.3'
}
dependencies {
compile "org.apache.mesos:mesos:${mesosVer}"
compile "org.slf4j:slf4j-api:${slf4jVer}"
compile "org.apache.curator:curator-framework:${curatorVer}"
compile "io.dropwizard:dropwizard-core:${dropwizardVer}"
compile "io.dropwizard.modules:dropwizard-java8:0.9.0-1"
compile "io.dropwizard:dropwizard-client:${dropwizardVer}"
compile "com.google.inject:guice:${guiceVer}"
compile "com.google.guava:guava:${guavaVer}"
compile "ch.qos.logback:logback-classic:${logbackVer}"
compile "ch.qos.logback:logback-core:${logbackVer}"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.6.1"
compile "junit:junit:${junitVer}"
testCompile "org.apache.curator:curator-test:${curatorVer}"
testCompile "io.dropwizard:dropwizard-testing:${dropwizardVer}"
}
// Print results on the fly
test {
testLogging {
events "passed", "skipped", "failed"
}
}
// Include unit test report in 'check'
// (jacoco itself depends on 'test')
check.dependsOn jacocoTestReport
jacocoTestReport {
reports {
html.destination "${buildDir}/jacoco"
}
}
task copyTestResources(type: Copy) {
from sourceSets.test.resources
into sourceSets.test.output.classesDir
}
processTestResources.dependsOn copyTestResources
}
configure(project(':seedprovider')) {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'org.apache.cassandra:cassandra-all:3.0.8'
}
}
task cliVersion << {
print cliVersion
}