-
Notifications
You must be signed in to change notification settings - Fork 165
/
build.gradle
144 lines (121 loc) · 4.26 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
plugins {
id 'idea'
id 'java-library'
id "com.diffplug.gradle.spotless" version "3.19.0"
id "com.github.blueboxware.tocme" version "1.1"
id "com.github.spotbugs" version "1.7.1"
id "org.jenkins-ci.jpi" version "0.31.0"
}
repositories {
jcenter()
mavenLocal()
maven {
name "Mesosphere Public Repo"
url "https://downloads.mesosphere.io/maven"
}
maven {
name "Mesosphere Snapshot Repo"
url "https://downloads.mesosphere.io/maven-snapshots"
}
}
ext {
usiVersion= '0.1.48'
scalaVersion = '2.13'
akkaVersion = '2.6.3'
junitJupiterVersion = '5.6.2'
jcascVersion = '1.35'
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
api 'com.google.guava:guava:26.0-jre'
api group: 'com.mesosphere.usi', name: "core_$scalaVersion", version: usiVersion
api group: 'com.mesosphere.usi', name: "core-models_$scalaVersion", version: usiVersion
api group: 'com.mesosphere.usi', name: "mesos-client_$scalaVersion", version: usiVersion
api group: 'com.mesosphere.usi', name: "mesos-master-detector_$scalaVersion", version: usiVersion
api group: 'com.mesosphere.usi', name: "metrics-dropwizard_$scalaVersion", version: usiVersion
api group: 'com.mesosphere.usi', name: "persistence_$scalaVersion", version: usiVersion
api group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
api group: 'com.typesafe.akka', name: "akka-slf4j_$scalaVersion", version: akkaVersion
jenkinsPlugins 'org.jenkins-ci.plugins:metrics:4.0.2.5@jar'
jenkinsServer 'org.jenkins-ci.plugins:metrics:4.0.2.5'
testRuntimeOnly 'org.jenkins-ci.plugins:metrics:4.0.2.5'
// Test dependencies
testImplementation 'com.squareup.okhttp3:okhttp:3.14.1'
testImplementation 'javax.json:javax.json-api:1.1'
testImplementation 'org.glassfish:javax.json:1.0.4'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitJupiterVersion
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitJupiterVersion
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitJupiterVersion
testImplementation group: 'com.mesosphere.usi', name: "test-utils_$scalaVersion", version: usiVersion
testImplementation 'org.awaitility:awaitility:3.1.6'
testImplementation "io.jenkins:configuration-as-code:$jcascVersion@jar"
testImplementation group: 'io.jenkins.configuration-as-code', name: 'test-harness', version: jcascVersion
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.3'
}
test {
useJUnitPlatform {
excludeTags 'integration'
}
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
}
task integrationTest(type: Test) {
useJUnitPlatform {
includeTags 'integration'
}
check.dependsOn it
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
}
group = "org.jenkins-ci.plugins"
version = "2.0"
description = "Allows the dynamic launch of Jenkins agent on a Mesos cluster, depending on workload"
sourceCompatibility = 1.8
targetCompatibility = 1.8
jenkinsPlugin {
coreVersion = "2.164"
displayName = "Mesos Cloud"
shortName = "mesos-cloud"
url = "https://wiki.jenkins-ci.org/display/JENKINS/Mesos+Plugin"
gitHubUrl = "https://github.com/mesosphere/jenkins-mesos-plugin/"
shortName = "mesos"
// The developers section is optional, and corresponds to the POM developers section.
developers {
developer {
id 'jeschkies'
name 'Karsten Jeschkies'
email '[email protected]'
}
}
}
task zipSandboxes(type: Zip) {
def buildTag = System.getenv("BUILD_TAG") ?: "undefined"
from 'sandboxes/'
exclude '**/provisioner'
archiveName "sandboxes-${buildTag.replaceAll("[^a-zA-Z0-9\\.\\-]", "-")}.zip"
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
spotless {
java {
googleJavaFormat()
}
}
idea {
project {
jdkName = '1.8'
languageLevel = '1.8'
vcs = 'Git'
}
}
tocme {
variant = GitHub
doc(file("README.md"))
}