Skip to content

Commit

Permalink
Remove unnecessary suppressions for dependency-analysis plugin (#3170)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
idelpivnitskiy authored Jan 11, 2025
1 parent e87371c commit 13197de
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 86 deletions.
14 changes: 0 additions & 14 deletions servicetalk-http-netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@

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

afterEvaluate {
if (tasks.findByName("projectHealth")) {
dependencyAnalysis {
issues {
// False positives for testImplementation
onUnusedDependencies {
exclude("io.netty.incubator:netty-incubator-transport-native-io_uring")
}
}
}
}
}

dependencies {
api project(":servicetalk-client-api")
api project(":servicetalk-concurrent-api")
Expand Down Expand Up @@ -85,7 +72,6 @@ dependencies {
testImplementation project(":servicetalk-transport-netty")
testImplementation "com.fasterxml.jackson.core:jackson-core"
testImplementation "io.netty.incubator:netty-incubator-transport-classes-io_uring:$nettyIoUringVersion"
testImplementation "io.netty.incubator:netty-incubator-transport-native-io_uring:$nettyIoUringVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-params"
testImplementation "org.junit.platform:junit-platform-commons:$junitPlatformVersion"
Expand Down
14 changes: 0 additions & 14 deletions servicetalk-http-router-jersey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@

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

afterEvaluate {
if (tasks.findByName("projectHealth")) {
dependencyAnalysis {
issues {
// False positives for testFixturesImplementation
onUnusedDependencies {
exclude("org.junit.platform:junit-platform-suite")
}
}
}
}
}

def actualJerseyVersion = "${jerseyVersion}"
def actualJavaxActivationVersion = "${javaxActivationVersion}"
def actualJavaxAnnotationsApiVersion = "${javaxAnnotationsApiVersion}"
Expand Down Expand Up @@ -106,7 +93,6 @@ dependencies {
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
testFixturesImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params"
testFixturesImplementation "org.junit.platform:junit-platform-suite:$junitPlatformVersion"
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
testFixturesImplementation "org.mockito:mockito-junit-jupiter:$mockitoCoreVersion"

Expand Down
14 changes: 0 additions & 14 deletions servicetalk-http-router-jersey3-jakarta10/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,6 @@ afterEvaluate {
}
}

afterEvaluate {
if (tasks.findByName("projectHealth")) {
dependencyAnalysis {
issues {
// False positives for testFixturesImplementation
onUnusedDependencies {
exclude("org.junit.platform:junit-platform-suite")
}
}
}
}
}

def actualJerseyVersion = "${jersey3VersionEE10}"
def actualJavaxActivationVersion = "${javaxActivationVersionEE10}"
def actualJavaxAnnotationsApiVersion = "${javaxAnnotationsApiVersionEE10}"
Expand Down Expand Up @@ -168,7 +155,6 @@ dependencies {
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
testFixturesImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params"
testFixturesImplementation "org.junit.platform:junit-platform-suite:$junitPlatformVersion"
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
testFixturesImplementation "org.mockito:mockito-junit-jupiter:$mockitoCoreVersion"

Expand Down
14 changes: 0 additions & 14 deletions servicetalk-http-router-jersey3-jakarta9/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,6 @@ afterEvaluate {
}
}

afterEvaluate {
if (tasks.findByName("projectHealth")) {
dependencyAnalysis {
issues {
// False positives for testFixturesImplementation
onUnusedDependencies {
exclude("org.junit.platform:junit-platform-suite")
}
}
}
}
}

def actualJerseyVersion = "${jersey3VersionEE9}"
def actualJavaxActivationVersion = "${javaxActivationVersionEE9}"
def actualJavaxAnnotationsApiVersion = "${javaxAnnotationsApiVersionEE9}"
Expand Down Expand Up @@ -168,7 +155,6 @@ dependencies {
testFixturesImplementation "com.google.code.findbugs:jsr305:$jsr305Version"
testFixturesImplementation "net.javacrumbs.json-unit:json-unit:$jsonUnitVersion"
testFixturesImplementation "org.junit.jupiter:junit-jupiter-params"
testFixturesImplementation "org.junit.platform:junit-platform-suite:$junitPlatformVersion"
testFixturesImplementation "org.mockito:mockito-core:$mockitoCoreVersion"
testFixturesImplementation "org.mockito:mockito-junit-jupiter:$mockitoCoreVersion"

Expand Down
16 changes: 0 additions & 16 deletions servicetalk-tcp-netty-internal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@

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

afterEvaluate {
if (tasks.findByName("projectHealth")) {
dependencyAnalysis {
issues {
// False positives for testFixturesImplementation
onUnusedDependencies {
exclude("io.netty:netty-transport-native-epoll")
exclude("io.netty:netty-transport-native-kqueue")
}
}
}
}
}

dependencies {
api platform("io.netty:netty-bom:$nettyVersion")
api project(":servicetalk-client-api")
Expand Down Expand Up @@ -76,8 +62,6 @@ dependencies {
testFixturesImplementation "io.netty:netty-transport"
testFixturesImplementation "io.netty:netty-transport-classes-epoll"
testFixturesImplementation "io.netty:netty-transport-classes-kqueue"
testFixturesImplementation "io.netty:netty-transport-native-epoll"
testFixturesImplementation "io.netty:netty-transport-native-kqueue"
testFixturesImplementation "io.netty:netty-transport-native-unix-common"
testFixturesImplementation "org.junit.jupiter:junit-jupiter-api"
testFixturesImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
Expand Down
14 changes: 0 additions & 14 deletions servicetalk-transport-netty-internal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@ apply plugin: "io.servicetalk.servicetalk-gradle-plugin-internal-library"

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

afterEvaluate {
if (tasks.findByName("projectHealth")) {
dependencyAnalysis {
issues {
// False positives for testFixturesImplementation
onUnusedDependencies {
exclude("io.netty.incubator:netty-incubator-transport-native-io_uring")
}
}
}
}
}

dependencies {
api platform("io.netty:netty-bom:$nettyVersion")
api project(":servicetalk-buffer-api")
Expand Down Expand Up @@ -98,7 +85,6 @@ dependencies {

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

0 comments on commit 13197de

Please sign in to comment.