forked from Netflix/spectator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (38 loc) · 1.03 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
plugins {
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
dependencies {
compile project(':spectator-api')
compile project(':spectator-ext-gc')
compile project(':spectator-ext-jvm')
compile "com.eclipsesource.minimal-json:minimal-json"
compile "com.typesafe:config"
compile 'io.dropwizard.metrics:metrics-core:3.1.2'
compile 'org.apache.spark:spark-core_2.10:1.6.1'
}
jar {
manifest {
attributes(
"Automatic-Module-Name": "com.netflix.spectator.spark"
)
}
}
shadowJar {
classifier = 'shadow'
relocate 'com.eclipsesource.json', 'com.netflix.spectator.shadowedjson'
// The dependencies not listed here should come from the spark distribution
dependencies {
include project(':spectator-api')
include project(':spectator-ext-gc')
include project(':spectator-ext-jvm')
include dependency("com.eclipsesource.minimal-json:minimal-json")
include dependency("com.typesafe:config")
}
}
publishing {
publications {
nebula(MavenPublication) {
artifact shadowJar
}
}
}