which jsr305 dependency should I use for spring bo...
# spring
c
which jsr305 dependency should I use for spring boot 2.1.1 kotlin 1.3.11 (with some java8 classes) project?
s
com.google.code.findbugs:jsr305:3.0.2
But you need it only if you are writing Java code where you want to provide null safe API (to avoid warnings), for other cases it should not be needed.
c
Thank you, that's exactly the case. So findbugs:jsr305 is still relevant? I've seen some messages floating around about findbugs being abandoned.
s
Hopefully some replacement will be available la
But for now, yes this is the one to use
c
I see, thank you.
t
doesn't spring has its own? if you are already dependent on spring, might as well use theirs.
c
@tmg That's a great question, actually. I remember when I tried to add the dependency, gradle couldn't resolve the version, so I assumed it's not a Spring dependency. But since it's a new project I do a lot of changes at once, so maybe there was some other reason, I'll test this.