Skip to content

Commit 3d3e880

Browse files
committed
Add spotbugs dependencies so we can use @nullable and @nonnull across the codebase
Signed-off-by: Alfredo Gutierrez <alfredo@swirldslabs.com>
1 parent e08b91a commit 3d3e880

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

buildSrc/src/main/kotlin/com.hedera.block.jpms-modules.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,8 @@ extraJavaModuleInfo {
9191
module("junit:junit", "junit")
9292
module("org.mockito:mockito-core", "org.mockito")
9393
module("org.mockito:mockito-junit-jupiter", "org.mockito.junit.jupiter")
94+
95+
// spotbugs
96+
module("com.github.spotbugs:spotbugs-annotations", "com.github.spotbugs.annotations")
97+
module("com.google.code.findbugs:jsr305", "java.annotation") { exportAllPackages() }
9498
}

server/src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
requires io.helidon.config;
88
requires io.helidon.webserver.grpc;
99
requires io.helidon.webserver;
10+
requires static com.github.spotbugs.annotations;
1011
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencyResolutionManagement {
3737
version("com.google.protobuf", "3.24.0")
3838
version("io.helidon.webserver.http2", "4.0.10")
3939
version("io.helidon.webserver.grpc", "4.0.10")
40-
40+
version("com.github.spotbugs.annotations", "4.7.3")
4141
// Testing only versions
4242
version("org.assertj.core", "3.23.1")
4343
version("org.junit.jupiter.api", "5.10.2")

0 commit comments

Comments
 (0)