forked from Netflix/zuul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (71 loc) · 2.39 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
plugins {
id 'nebula.netflixoss' version '8.0.0'
id 'nebula.dependency-lock' version '8.0.0'
id "com.google.osdetector" version "1.6.2"
}
ext.githubProjectName = rootProject.name
idea {
project {
languageLevel = '1.8'
}
}
configurations.all {
exclude group: 'asm', module: 'asm'
exclude group: 'asm', module: 'asm-all'
}
subprojects {
apply plugin: 'nebula.netflixoss'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'nebula.javadoc-jar'
apply plugin: 'nebula.dependency-lock'
repositories {
jcenter()
}
group = "com.netflix.${githubProjectName}"
sourceCompatibility = '1.8'
sourceSets {
test {
java {
srcDirs = ['src/main/java', 'src/test/java']
include '**/*.java'
}
groovy {
srcDirs = ['filters', 'src/main/groovy']
include '**/*.groovy'
}
}
}
javadoc {
options {
doclet = "org.benjchristensen.doclet.DocletExclude"
docletpath = [rootProject.file('./gradle/doclet-exclude.jar')]
stylesheetFile = rootProject.file('./gradle/javadocStyleSheet.css')
windowTitle = "Zuul Javadoc ${project.version}"
}
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
tasks.withType(Javadoc).each {
it.classpath = sourceSets.main.compileClasspath
}
dependencies {
ext.versions_guice = "4.0"
// Use guice-4 while debugging a startup error that is hidden by guice-3's lack of java8 lambda support.
compile(group: 'com.google.inject', name: 'guice', version: "${versions_guice}")
compile(group: 'com.google.inject.extensions', name: 'guice-multibindings', version: "${versions_guice}")
compile(group: 'com.google.inject.extensions', name: 'guice-grapher', version: "${versions_guice}")
compile(group: 'com.google.inject.extensions', name: 'guice-assistedinject', version: "${versions_guice}")
compile(group: 'com.google.inject.extensions', name: 'guice-servlet', version: "${versions_guice}")
compile(group: 'com.google.inject.extensions', name: 'guice-throwingproviders', version: "${versions_guice}")
}
test {
testLogging {
showStandardStreams = true
}
}
}