This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
/
build.gradle
102 lines (90 loc) · 3.22 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
plugins {
id 'com.github.ben-manes.versions' version '0.20.0'
id 'com.github.ksoichiro.console.reporter' version '0.6.2'
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'idea'
apply plugin: 'maven-publish'
// Run `./gradlew htmlDependencyReport` to view the dependency report
apply plugin: 'project-report'
// Double quotes are required for $rootDir to be resolved:
apply from: "$rootDir/gradle/quality.gradle"
group = 'mesosphere'
// ---
// INFO:
//
// In general, users of this SDK may use '-SNAPSHOT' builds for testing or development, but
// they MUST NOT be used for releases. A given '-SNAPSHOT' build will vary on a per-PR basis
// and APIs WILL break at any time. See the tags in this repo for a list of stable releases.
//
// In repo master, this version MUST ALWAYS be a '-SNAPSHOT' version.
// Release versions are ONLY published inside of tags.
// --
// INSTRUCTIONS: How to cut a release of e.g. '0.10.0', then start the '0.11.0-SNAPSHOT' track:
//
// 1. Run a CI job which calls './release.sh -r 0.10.0' to create the release tag from current master.
// 2. In the GitHub UI, add a Release entry against the tag created in step 1. List any changes in release notes.
// 3. Create a PR which bumps this from '0.10.0-SNAPSHOT' to '0.11.0-SNAPSHOT' in master to start the 0.11.0 track.
// --
version = '0.58.0-SNAPSHOT'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
jcenter()
mavenLocal()
mavenCentral()
maven {
url 'https://downloads.mesosphere.com/maven/'
}
maven {
url 'https://downloads.mesosphere.com/maven-snapshot/'
}
maven {
url 'https://repository.apache.org/content/repositories/snapshots/'
}
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava.options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation' << '-proc:none'
compileTestJava.options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation' << '-proc:none'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
javadoc.failOnError = false
}
artifacts {
archives sourcesJar
archives javadocJar
}
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'
}
}
}
}
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
// Print results on the fly
test {
testLogging {
events 'passed', 'skipped', 'failed'
}
}
}