forked from line/armeria
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (45 loc) · 2.21 KB
/
Copy pathbuild.gradle
File metadata and controls
55 lines (45 loc) · 2.21 KB
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
// 0.10, 0.11, 0.12 and 0.13 are all ABI and API compatible with each other,
// so we do not publish artifacts like 'armeria-thrift0.10' but just run tests
// to make sure the classes generated by ':thrift0.13' works with the classes
// compiled with an older version of libthrift.
//
// See also: ../thrift0.9/build.gradle
dependencies {
testImplementation project(':prometheus1')
// Use the classes compiled with the latest libthrift,
// but use an older version for test classes.
testImplementation(project(':thrift0.13')) {
exclude group: 'org.apache.thrift', module: 'libthrift'
}
testImplementation libs.thrift012
// thrift api depends on httpclient4
testImplementation libs.apache.httpclient4
// Jetty, for testing TServlet interoperability.
testImplementation libs.jetty94.webapp
testImplementation libs.jetty94.http2.server
// Dropwizard and Prometheus, for testing metrics integration
testImplementation libs.dropwizard.metrics.core
testImplementation libs.prometheus.metrics.exposition.formats
// micrometer tracing
testImplementation (libs.micrometer.tracing.integration.test) {
exclude group: "org.mockito"
}
testImplementation libs.brave6.instrumentation.http.tests
}
tasks.processResources.from "${rootProject.projectDir}/thrift/thrift0.13/src/main/resources"
// Use the test sources from ':thrift0.13'.
// 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.compileTestJava.source "${rootProject.projectDir}/thrift/thrift0.13/src/test/java"
tasks.processTestResources.from "${rootProject.projectDir}/thrift/thrift0.13/src/test/resources"
// Use the old compiler.
def thriftFullVersion = libs.thrift012.get().versionConstraint.requiredVersion
ext {
thriftVersion = thriftFullVersion.substring(0, thriftFullVersion.lastIndexOf('.'))
testThriftSrcDirs = ["${rootProject.projectDir}/thrift/thrift0.13/src/test/thrift"]
}
// Disable checkstyle because it's checked by ':thrift0.13'.
tasks.withType(Checkstyle) {
onlyIf { false }
}