forked from d2iq-archive/jenkins-mesos-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
84 lines (73 loc) · 2.32 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
plugins {
id 'idea'
id 'java-library'
id "com.diffplug.gradle.spotless" version "3.19.0"
id "com.github.spotbugs" version "1.7.1"
id "org.jenkins-ci.jpi" version "0.31.0"
}
repositories {
jcenter()
}
ext {
usiBranch = 'master'
scalaVersion = '2.12'
akkaVersion = '2.5.19'
}
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 ('com.mesosphere.usi:core') { version { branch = usiBranch } }
api ('com.mesosphere.usi:core-models') { version { branch = usiBranch } }
api ('com.mesosphere.usi:mesos-client') { version { branch = usiBranch } }
api ('com.mesosphere.usi:persistence') { version { branch = usiBranch } }
api group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
// 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 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testImplementation('com.mesosphere.usi:test-utils') { version { branch = usiBranch } }
testImplementation 'org.awaitility:awaitility:3.1.6'
}
test {
useJUnitPlatform()
}
group = "org.jenkins-ci.plugins"
description = "Allows the dynamic launch Jenkins agent on a Mesos cluster, depending on workload"
sourceCompatibility = 1.8
targetCompatibility = 1.8
jenkinsPlugin {
coreVersion = "2.164"
displayName = "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 'kjeschkies@mesosphere.com'
}
}
}
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'
}
}