From c7d899a78a054b9e0e01c3e547daba1b58ec0a6a Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 20 Dec 2024 22:53:45 +0100 Subject: [PATCH] build(notifier): Make the Jakarta REST API dependency a constraint 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 --- notifier/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/notifier/build.gradle.kts b/notifier/build.gradle.kts index c1c6c106fe05..4ed041dce839 100644 --- a/notifier/build.gradle.kts +++ b/notifier/build.gradle.kts @@ -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")