Skip to content

Commit

Permalink
Added feature capability for nullability annotations to mark them as …
Browse files Browse the repository at this point in the history
…optional in POM
  • Loading branch information
gavlyukovskiy authored and Breus committed Nov 19, 2023
1 parent 31c8112 commit 8f44048
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ ext {
jUnitVersion = '5.10.1'
}

java {
withJavadocJar()
withSourcesJar()
registerFeature('nullabilityAnnotations') {
usingSourceSet(sourceSets.main)
}
}

dependencies {
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
nullabilityAnnotationsImplementation 'com.google.code.findbugs:jsr305:3.0.2'

testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.15.3'
testImplementation "org.junit.jupiter:junit-jupiter-api:${jUnitVersion}"
Expand All @@ -40,11 +48,6 @@ test {
useJUnitPlatform()
}

java {
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down

0 comments on commit 8f44048

Please sign in to comment.