Skip to content

Commit

Permalink
Ensure that <packaging> is set in poms.
Browse files Browse the repository at this point in the history
Previously our attempts to set packaging weren’t working at all and no packaging value was set in the pom one way or another. 

Fixes #2318.
  • Loading branch information
sjudd committed Dec 6, 2017
1 parent b4b4579 commit 06ba344
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/upload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ afterEvaluate { project ->
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}

pom.whenConfigured { pom ->
pom.packaging = POM_PACKAGING
}

pom.project {
name = POM_NAME
packaging = POM_PACKAGING
description = POM_DESCRIPTION
url = POM_URL

Expand Down

0 comments on commit 06ba344

Please sign in to comment.