forked from d2iq-archive/dcos-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
99 lines (83 loc) · 2.59 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
// Config shared by the dcos-commons library and the examples:
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
id 'com.github.ksoichiro.console.reporter' version '0.4.0'
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'com.github.ksoichiro.console.reporter'
apply from: "$rootDir/gradle/quality.gradle"
// ---
// To create a release release:
// 1. Merge a PR with "-SNAPSHOT" suffix removed
// 2. Merge a second PR which bumps the version with "-SNAPSHOT" suffix added back
// For example, given a version of "1.2.3-SNAPSHOT", merge "1.2.3" then "1.2.4-SNAPSHOT".
// ---
// In general, users of this SDK should NOT depend on "-SNAPSHOT" builds, as they may break
// at ANY TIME as changes are merged into master. They represent a fully unstable API.
// ---
group = "mesosphere"
version = "0.10.1-SNAPSHOT"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
maven {
url 'https://repository.apache.org/content/repositories/snapshots'
}
mavenLocal()
mavenCentral()
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
compileTestJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
task wrapper(type: Wrapper) {
gradleVersion = '3.2'
}
idea {
if (project.hasProperty('ideaParentDefined')) {
project {
jdkName = '1.8'
languageLevel = '1.8'
ipr {
withXml { provider ->
provider.node.component
.find { it.@name == 'VcsDirectoryMappings' }
.mapping.@vcs = 'Git'
}
}
}
}
}
// Print results on the fly
test {
testLogging {
events "passed", "skipped", "failed"
}
}
task copyExecutor(type: Copy) {
from('src/../../../sdk/executor/build/distributions/') {
include '**/*'
}
into('build/distributions')
}
}
ext {
mesosVer = "1.2.0-SNAPSHOT"
}
subprojects {
dependencies {
compile "org.apache.mesos:mesos:${mesosVer}"
}
}
shadowJar {
classifier = 'uber'
mergeServiceFiles()
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}