Skip to content

Commit 6a405c8

Browse files
Fix JDK8 builds
1 parent 26b30db commit 6a405c8

File tree

7 files changed

+69
-31
lines changed

7 files changed

+69
-31
lines changed

servicetalk-grpc-netty/build.gradle

+9-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ buildscript {
2323
apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"
2424
apply plugin: "com.google.protobuf"
2525

26-
dependencyAnalysis {
27-
issues {
28-
// False positives for testImplementation
29-
onUnusedDependencies {
30-
exclude(":servicetalk-http-utils")
26+
afterEvaluate {
27+
if (tasks.findByName("projectHealth")) {
28+
dependencyAnalysis {
29+
issues {
30+
// False positives for testImplementation
31+
onUnusedDependencies {
32+
exclude(":servicetalk-http-utils")
33+
}
34+
}
3135
}
3236
}
3337
}

servicetalk-http-netty/build.gradle

+9-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616

1717
apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"
1818

19-
dependencyAnalysis {
20-
issues {
21-
// False positives for testImplementation
22-
onUnusedDependencies {
23-
exclude("io.netty.incubator:netty-incubator-transport-native-io_uring")
19+
afterEvaluate {
20+
if (tasks.findByName("projectHealth")) {
21+
dependencyAnalysis {
22+
issues {
23+
// False positives for testImplementation
24+
onUnusedDependencies {
25+
exclude("io.netty.incubator:netty-incubator-transport-native-io_uring")
26+
}
27+
}
2428
}
2529
}
2630
}

servicetalk-http-router-jersey/build.gradle

+9-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616

1717
apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"
1818

19-
dependencyAnalysis {
20-
issues {
21-
// False positives for testFixturesImplementation
22-
onUnusedDependencies {
23-
exclude("org.junit.platform:junit-platform-suite")
19+
afterEvaluate {
20+
if (tasks.findByName("projectHealth")) {
21+
dependencyAnalysis {
22+
issues {
23+
// False positives for testFixturesImplementation
24+
onUnusedDependencies {
25+
exclude("org.junit.platform:junit-platform-suite")
26+
}
27+
}
2428
}
2529
}
2630
}

servicetalk-http-router-jersey3-jakarta10/build.gradle

+9-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ afterEvaluate {
7878
}
7979
}
8080

81-
dependencyAnalysis {
82-
issues {
83-
// False positives for testFixturesImplementation
84-
onUnusedDependencies {
85-
exclude("org.junit.platform:junit-platform-suite")
81+
afterEvaluate {
82+
if (tasks.findByName("projectHealth")) {
83+
dependencyAnalysis {
84+
issues {
85+
// False positives for testFixturesImplementation
86+
onUnusedDependencies {
87+
exclude("org.junit.platform:junit-platform-suite")
88+
}
89+
}
8690
}
8791
}
8892
}

servicetalk-http-router-jersey3-jakarta9/build.gradle

+9-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ afterEvaluate {
7878
}
7979
}
8080

81-
dependencyAnalysis {
82-
issues {
83-
// False positives for testFixturesImplementation
84-
onUnusedDependencies {
85-
exclude("org.junit.platform:junit-platform-suite")
81+
afterEvaluate {
82+
if (tasks.findByName("projectHealth")) {
83+
dependencyAnalysis {
84+
issues {
85+
// False positives for testFixturesImplementation
86+
onUnusedDependencies {
87+
exclude("org.junit.platform:junit-platform-suite")
88+
}
89+
}
8690
}
8791
}
8892
}

servicetalk-tcp-netty-internal/build.gradle

+10-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616

1717
apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"
1818

19-
dependencyAnalysis {
20-
issues {
21-
// False positives for testFixturesImplementation
22-
onUnusedDependencies {
23-
exclude("io.netty:netty-transport-native-epoll")
24-
exclude("io.netty:netty-transport-native-kqueue")
19+
afterEvaluate {
20+
if (tasks.findByName("projectHealth")) {
21+
dependencyAnalysis {
22+
issues {
23+
// False positives for testFixturesImplementation
24+
onUnusedDependencies {
25+
exclude("io.netty:netty-transport-native-epoll")
26+
exclude("io.netty:netty-transport-native-kqueue")
27+
}
28+
}
2529
}
2630
}
2731
}

servicetalk-transport-netty-internal/build.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"
1818

1919
ext.isNettySnapshot = "$nettyVersion".endsWithAny("SNAPSHOT", "+")
2020

21+
afterEvaluate {
22+
if (tasks.findByName("projectHealth")) {
23+
dependencyAnalysis {
24+
issues {
25+
// False positives for testFixturesImplementation
26+
onUnusedDependencies {
27+
exclude("io.netty.incubator:netty-incubator-transport-native-io_uring")
28+
}
29+
}
30+
}
31+
}
32+
}
33+
2134
dependencies {
2235
api platform("io.netty:netty-bom:$nettyVersion")
2336
api project(":servicetalk-buffer-netty")
@@ -67,6 +80,7 @@ dependencies {
6780

6881
testFixturesImplementation platform("org.junit:junit-bom:$junit5Version")
6982
testFixturesImplementation project(":servicetalk-utils-internal")
83+
testFixturesImplementation "io.netty.incubator:netty-incubator-transport-native-io_uring:$nettyIoUringVersion"
7084
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
7185
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api"
7286
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"

0 commit comments

Comments
 (0)