This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/3.x by this push:
new 7bfa9e52d bugfix: made more -api dependencies optional to avoid
pulling them in as transitive dependencies
7bfa9e52d is described below
commit 7bfa9e52d5426f6aedf0b55dfc6e28617f729353
Author: lprimak <[email protected]>
AuthorDate: Wed Mar 4 11:03:30 2026 -0600
bugfix: made more -api dependencies optional to avoid pulling them in as
transitive dependencies
---
support/guice/pom.xml | 3 +++
support/jaxrs/pom.xml | 1 +
2 files changed, 4 insertions(+)
diff --git a/support/guice/pom.xml b/support/guice/pom.xml
index 7052aba91..73cdb9099 100644
--- a/support/guice/pom.xml
+++ b/support/guice/pom.xml
@@ -50,10 +50,12 @@
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
@@ -72,6 +74,7 @@
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
diff --git a/support/jaxrs/pom.xml b/support/jaxrs/pom.xml
index d9b924da5..9e5cf46f3 100644
--- a/support/jaxrs/pom.xml
+++ b/support/jaxrs/pom.xml
@@ -69,6 +69,7 @@
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>