Use compileOnly and testCompileOnly for JSR 305 JAR
Use compileOnly and testCompileOnly for JSR 305 JAR

This change avoids error messages in logs during test classes
compilation which are using @NonNull and @Nullable.

spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework,spring-projects/spring-framework