Skip to content

Commit 06ba344

Browse files
committed
Ensure that <packaging> is set in poms.
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.
1 parent b4b4579 commit 06ba344

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/upload.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ afterEvaluate { project ->
8282
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
8383
}
8484

85+
pom.whenConfigured { pom ->
86+
pom.packaging = POM_PACKAGING
87+
}
88+
8589
pom.project {
8690
name = POM_NAME
87-
packaging = POM_PACKAGING
8891
description = POM_DESCRIPTION
8992
url = POM_URL
9093

0 commit comments

Comments
 (0)