forked from Netflix/zuul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (86 loc) · 3.02 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
// This buildscript is a hack to get around a conflict between different versions of nebula used in this
// project vs internally at netflix. Once some transitive versions of netflixoss get uptodate, then this can
// be removed.
// And note that the error seen without this is:
// java.lang.NoClassDefFoundError: org/jfrog/gradle/plugin/artifactory/task/BuildInfoBaseTask
buildscript {
dependencies {
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:3.+'
}
configurations.classpath {
resolutionStrategy {
force 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.7'
}
}
}
plugins {
id 'nebula.netflixoss' version '4.1.0'
id 'nebula.dependency-lock' version '4.1.0'
id "com.google.osdetector" version "1.4.0"
}
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
}
}
}