Skip to content

Commit 13197de

Browse files
Remove unnecessary suppressions for dependency-analysis plugin (#3170)
Motivation: Previously identified "false positives" were actually not false. After fixing all other warnings, it's clear now that we can remove some of the suppressions and address those warnings too. Modifications: - Remove suppressions that can be addressed. Result: Less suppressions for dependency-analysis plugin checks.
1 parent e87371c commit 13197de

File tree

6 files changed

+0
-86
lines changed

6 files changed

+0
-86
lines changed

servicetalk-http-netty/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@
1616

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

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-
}
28-
}
29-
}
30-
}
31-
3219
dependencies {
3320
api project(":servicetalk-client-api")
3421
api project(":servicetalk-concurrent-api")
@@ -85,7 +72,6 @@ dependencies {
8572
testImplementation project(":servicetalk-transport-netty")
8673
testImplementation "com.fasterxml.jackson.core:jackson-core"
8774
testImplementation "io.netty.incubator:netty-incubator-transport-classes-io_uring:$nettyIoUringVersion"
88-
testImplementation "io.netty.incubator:netty-incubator-transport-native-io_uring:$nettyIoUringVersion"
8975
testImplementation "org.junit.jupiter:junit-jupiter-api"
9076
testImplementation "org.junit.jupiter:junit-jupiter-params"
9177
testImplementation "org.junit.platform:junit-platform-commons:$junitPlatformVersion"

servicetalk-http-router-jersey/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@
1616

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

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-
}
28-
}
29-
}
30-
}
31-
3219
def actualJerseyVersion = "${jerseyVersion}"
3320
def actualJavaxActivationVersion = "${javaxActivationVersion}"
3421
def actualJavaxAnnotationsApiVersion = "${javaxAnnotationsApiVersion}"
@@ -106,7 +93,6 @@ dependencies {
10693
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
10794
testFixturesImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
10895
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params"
109-
testFixturesImplementation "org.junit.platform:junit-platform-suite:$junitPlatformVersion"
11096
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
11197
testFixturesImplementation "org.mockito:mockito-junit-jupiter:$mockitoCoreVersion"
11298

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,6 @@ afterEvaluate {
7878
}
7979
}
8080

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-
}
90-
}
91-
}
92-
}
93-
9481
def actualJerseyVersion = "${jersey3VersionEE10}"
9582
def actualJavaxActivationVersion = "${javaxActivationVersionEE10}"
9683
def actualJavaxAnnotationsApiVersion = "${javaxAnnotationsApiVersionEE10}"
@@ -168,7 +155,6 @@ dependencies {
168155
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
169156
testFixturesImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
170157
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params"
171-
testFixturesImplementation "org.junit.platform:junit-platform-suite:$junitPlatformVersion"
172158
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
173159
testFixturesImplementation "org.mockito:mockito-junit-jupiter:$mockitoCoreVersion"
174160

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,6 @@ afterEvaluate {
7878
}
7979
}
8080

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-
}
90-
}
91-
}
92-
}
93-
9481
def actualJerseyVersion = "${jersey3VersionEE9}"
9582
def actualJavaxActivationVersion = "${javaxActivationVersionEE9}"
9683
def actualJavaxAnnotationsApiVersion = "${javaxAnnotationsApiVersionEE9}"
@@ -168,7 +155,6 @@ dependencies {
168155
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
169156
testFixturesImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
170157
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params"
171-
testFixturesImplementation "org.junit.platform:junit-platform-suite:$junitPlatformVersion"
172158
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
173159
testFixturesImplementation "org.mockito:mockito-junit-jupiter:$mockitoCoreVersion"
174160

servicetalk-tcp-netty-internal/build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@
1616

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

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-
}
29-
}
30-
}
31-
}
32-
3319
dependencies {
3420
api platform("io.netty:netty-bom:$nettyVersion")
3521
api project(":servicetalk-client-api")
@@ -76,8 +62,6 @@ dependencies {
7662
testFixturesImplementation "io.netty:netty-transport"
7763
testFixturesImplementation "io.netty:netty-transport-classes-epoll"
7864
testFixturesImplementation "io.netty:netty-transport-classes-kqueue"
79-
testFixturesImplementation "io.netty:netty-transport-native-epoll"
80-
testFixturesImplementation "io.netty:netty-transport-native-kqueue"
8165
testFixturesImplementation "io.netty:netty-transport-native-unix-common"
8266
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api"
8367
testFixturesImplementation "org.hamcrest:hamcrest:$hamcrestVersion"

servicetalk-transport-netty-internal/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ 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-
3421
dependencies {
3522
api platform("io.netty:netty-bom:$nettyVersion")
3623
api project(":servicetalk-buffer-api")
@@ -98,7 +85,6 @@ dependencies {
9885

9986
testFixturesImplementation project(":servicetalk-utils-internal")
10087
testFixturesImplementation "io.netty.incubator:netty-incubator-transport-classes-io_uring:$nettyIoUringVersion"
101-
testFixturesImplementation "io.netty.incubator:netty-incubator-transport-native-io_uring:$nettyIoUringVersion"
10288
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
10389
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
10490
testFixturesImplementation "org.slf4j:slf4j-api:$slf4jVersion"

0 commit comments

Comments
 (0)