Skip to content

Commit

Permalink
Fix signing task onlyIf restriction (amazon-ion#483)
Browse files Browse the repository at this point in the history
The argument to `hasTask` must be provided as either an instance of
`Task` or a `String` representing the absolute task path.

The absolute task path for the project root publish task is `:publish`.
  • Loading branch information
jobarr-amzn authored Apr 20, 2023
1 parent 97c0517 commit 7cae8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ tasks {
}

withType<Sign> {
setOnlyIf { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
setOnlyIf { isReleaseVersion && gradle.taskGraph.hasTask(":publish") }
}

cyclonedxBom {
Expand Down

0 comments on commit 7cae8e9

Please sign in to comment.