Skip to content

Commit

Permalink
fix nullptr exception in publishing.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens-G committed Feb 24, 2021
1 parent e89b3e1 commit 13f9e9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/java/gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ def configurePom(pom) {
pom.whenConfigured {
// Fixup the scope for servlet-api to be 'provided' instead of 'compile'
dependencies.find { dep -> dep.groupId == 'javax.servlet' && dep.artifactId == 'servlet-api' }.with {
// it.optional = true
it.scope = 'provided'
if(it != null) {
// it.optional = true
it.scope = 'provided'
}
}
}
}
Expand Down

0 comments on commit 13f9e9e

Please sign in to comment.