Skip to content

Commit

Permalink
Fix task order when releasing to Nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Feb 14, 2024
1 parent efc467e commit 60b0e07
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ class SonatypePlugin : Plugin<Project> {
}
}

try {
tasks.named("publishToNexus")
} catch (e: UnknownTaskException) {
if (tasks.findByName("publishToNexus") == null) {
tasks.register("publishToNexus")
}
tasks.named("closeRepository") {
Expand Down

0 comments on commit 60b0e07

Please sign in to comment.