forked from Netflix/zuul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (92 loc) · 2.98 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
buildscript {
dependencies {
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.36.0'
}
}
plugins {
id 'com.netflix.nebula.netflixoss' version '11.3.2'
id "com.google.osdetector" version "1.7.3"
id "me.champeau.jmh" version "0.7.1"
id "org.openrewrite.rewrite" version "6.3.0"
}
ext.githubProjectName = rootProject.name
idea {
project {
languageLevel = '1.8'
}
}
configurations.all {
exclude group: 'asm', module: 'asm'
exclude group: 'asm', module: 'asm-all'
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'com.netflix.nebula.netflixoss'
apply plugin: 'java'
apply plugin: 'com.netflix.nebula.javadoc-jar'
apply plugin: 'com.netflix.nebula.dependency-lock'
apply plugin: 'me.champeau.jmh'
apply plugin: 'org.openrewrite.rewrite'
apply plugin: 'com.palantir.java-format'
license {
ignoreFailures = false
excludes([
"**/META-INF/services/javax.annotation.processing.Processor",
"**/META-INF/gradle/incremental.annotation.processors",
"**/*.cert",
"**/*.jks",
"**/*.key",
])
}
group = "com.netflix.${githubProjectName}"
sourceCompatibility = '1.8'
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
tasks.withType(Javadoc).each {
it.classpath = sourceSets.main.compileClasspath
// Ignore Javadoc warnings for now, re-enable after Zuul 3.
it.options.addStringOption('Xdoclint:none', '-quiet')
}
ext {
libraries = [
guava: "com.google.guava:guava:31.1-jre",
okhttp: 'com.squareup.okhttp3:okhttp:4.11.0',
jupiterApi: 'org.junit.jupiter:junit-jupiter-api:5.+',
jupiterParams: 'org.junit.jupiter:junit-jupiter-params:5.+',
jupiterEngine: 'org.junit.jupiter:junit-jupiter-engine:5.+',
jupiterMockito: 'org.mockito:mockito-junit-jupiter:4.+',
mockito: 'org.mockito:mockito-core:4.+',
slf4j: "org.slf4j:slf4j-api:1.7.36",
truth: 'com.google.truth:truth:1.1.5',
awaitility: 'org.awaitility:awaitility:4.2.0'
]
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
}
}
dependencies {
rewrite(platform("org.openrewrite.recipe:rewrite-recipe-bom:2.2.1"))
rewrite("org.openrewrite.recipe:rewrite-static-analysis:1.0.7")
rewrite("org.openrewrite.recipe:rewrite-logging-frameworks")
rewrite("org.openrewrite.recipe:rewrite-testing-frameworks")
}
rewrite {
failOnDryRunResults = true
activeRecipe("org.openrewrite.java.testing.junit5.JUnit5BestPractices")
activeRecipe("org.openrewrite.java.logging.slf4j.Slf4jBestPractices")
exclusion(
// Exclude all groovy files
"**/*.groovy")
}