-
Notifications
You must be signed in to change notification settings - Fork 335
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (38 loc) · 1.21 KB
/
build.gradle
File metadata and controls
45 lines (38 loc) · 1.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
apply from: "$rootDir/gradle/java.gradle"
muzzle {
pass {
group = "io.netty"
module = "netty-transport"
versions = "[4.0.0.Final,)"
assertInverse = true
}
pass {
group = "io.grpc"
module = "grpc-netty-shaded"
versions = "[,]"
assertInverse = false
}
pass {
coreJdk()
}
}
addTestSuiteForDir('latestDep4Test', 'test')
addTestSuiteForDir('latestDepTest', 'test')
dependencies {
testImplementation project(':dd-java-agent:instrumentation:trace-annotation')
testImplementation group: 'io.netty', name: 'netty-all', version: '4.1.108.Final'
testImplementation group: 'io.netty', name: 'netty-transport', version: '4.1.108.Final'
latestDep4TestImplementation group: 'io.netty', name: 'netty-transport', version: '4.+'
latestDepTestImplementation group: 'io.netty', name: 'netty-transport', version: '+'
}
tasks.named("latestDepTest") {
dependsOn "latestDep4Test"
}
configurations.configureEach {
resolutionStrategy.componentSelection.all { ComponentSelection selection ->
def version = selection.candidate.version.toLowerCase()
if (version.contains('alpha') || version.contains('beta')) {
reject("Early Access Version: ${selection.candidate.version}")
}
}
}