From d30f5af3fdec545a99dc722b28384d4037156248 Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Wed, 7 Aug 2024 12:45:28 -0600 Subject: [PATCH] feat: Add SpotBugs Annotation (#87) Signed-off-by: Alfredo Gutierrez --- .../src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts | 4 ++++ server/src/main/java/module-info.java | 1 + settings.gradle.kts | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts b/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts index fc612ae20..6a387bd17 100644 --- a/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts +++ b/buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts @@ -91,4 +91,8 @@ extraJavaModuleInfo { module("junit:junit", "junit") module("org.mockito:mockito-core", "org.mockito") module("org.mockito:mockito-junit-jupiter", "org.mockito.junit.jupiter") + + // spotbugs + module("com.github.spotbugs:spotbugs-annotations", "com.github.spotbugs.annotations") + module("com.google.code.findbugs:jsr305", "java.annotation") { exportAllPackages() } } diff --git a/server/src/main/java/module-info.java b/server/src/main/java/module-info.java index c78fae8d4..45f9bdec5 100644 --- a/server/src/main/java/module-info.java +++ b/server/src/main/java/module-info.java @@ -7,4 +7,5 @@ requires io.helidon.config; requires io.helidon.webserver.grpc; requires io.helidon.webserver; + requires static com.github.spotbugs.annotations; } diff --git a/settings.gradle.kts b/settings.gradle.kts index 460789c92..ad9c63513 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -37,7 +37,7 @@ dependencyResolutionManagement { version("com.google.protobuf", "3.24.0") version("io.helidon.webserver.http2", "4.0.10") version("io.helidon.webserver.grpc", "4.0.10") - + version("com.github.spotbugs.annotations", "4.7.3") // Testing only versions version("org.assertj.core", "3.23.1") version("org.junit.jupiter.api", "5.10.2")