forked from line/armeria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (42 loc) · 1.84 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
final def DROPWIZARD_VERSION = '1.3.29'
dependencies {
implementation project(':jetty9')
// Dropwizard
api libs.dropwizard1.core
api libs.dropwizard1.util
api libs.dropwizard1.lifecycle
api libs.dropwizard1.jackson
api libs.dropwizard1.validation
api libs.dropwizard1.jersey
api libs.dropwizard1.jetty
// Dropwizard Metrics
implementation libs.dropwizard.metrics.core
testImplementation libs.dropwizard1.testing
}
// Use the sources from ':dropwizard2'.
// NB: We should never add these directories using the 'sourceSets' directive because that will make
// them added to more than one project and having a source directory with more than one output directory
// will confuse IDEs such as IntelliJ IDEA.
tasks.compileJava.source "${rootProject.projectDir}/dropwizard2/src/main/java"
tasks.processResources.from "${rootProject.projectDir}/dropwizard2/src/main/resources"
tasks.compileTestJava.source "${rootProject.projectDir}/dropwizard2/src/test/java"
tasks.processTestResources.from "${rootProject.projectDir}/dropwizard2/src/test/resources"
tasks.sourcesJar.from "${rootProject.projectDir}/dropwizard2/src/main/java"
tasks.sourcesJar.from "${rootProject.projectDir}/dropwizard2/src/main/resources"
tasks.javadoc.source "${rootProject.projectDir}/dropwizard2/src/main/java"
// Do not relocate Guava because it's part of Dropwizard's public API.
[tasks.shadedJar, tasks.shadedTestJar].each { task ->
task.relocators.clear()
project.ext.relocations.each { Map<String, String> props ->
def from = props['from']
def to = props['to']
if (from in ['com.google.common', 'com.google.thirdparty.publicsuffix']) {
return
}
task.relocate from, to
}
}
// Disable checkstyle because it's checked by ':dropwizard2'.
tasks.withType(Checkstyle) {
onlyIf { false }
}