Skip to content

Commit

Permalink
build(notifier): Make the Jakarta REST API dependency a constraint
Browse files Browse the repository at this point in the history
Prevent consumers of the notifier to upgrade the Jakarta REST API
because the Jira library requires version 2.1.x which still has the
"javax" instead of the "jakarta" package namespace.

Note that because constraints do not actually introduce a dependency [1],
the constraint needs to be declared additionally.

[1]: https://docs.gradle.org/current/userguide/dependency_constraints.html

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 21, 2024
1 parent 3523d00 commit c7d899a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions notifier/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ dependencies {
// Required due to https://ecosystem.atlassian.net/browse/JRJC-262.
implementation(libs.jakartaRestApi)

constraints {
implementation(libs.jakartaRestApi) {
because("the JIRA REST client still needs a 2.1.x version with the javax package namespace")
}
}

implementation(libs.jiraRestClient.api)
implementation(libs.jiraRestClient.app) {
exclude("org.apache.logging.log4j", "log4j-slf4j2-impl")
Expand Down

0 comments on commit c7d899a

Please sign in to comment.