You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/14 07:51:49 UTC

[GitHub] [pulsar] NiccoMlt opened a new issue #11313: Swagger dependency scope is too broad

NiccoMlt opened a new issue #11313:
URL: https://github.com/apache/pulsar/issues/11313


   **Is your enhancement request related to a problem? Please describe.**
   
   I'm using `org.apache.pulsar:pulsar-broker` and `org.apache.pulsar:pulsar-client-original` and I see that Swagger dependencies are "leaked" as transitive dependencies, because they are declared in the default compile Maven scope.
   I'm currently using Swagger 2.X in the same project, and I don't like having two versions of the same library in the classpath, if possible.
   
   Are `io.swagger:swagger-annotations` and `io.swagger:swagger-core` actually required also at runtime?
   
   **Describe the solution you'd like**
   
   I think those dependencies should be declared in the `provided` scope like usual for annotation libraries.
   
   **Describe alternatives you've considered**
   
   If there is no interest in handling this behavior, I'm also asking whether can I exclude the dependency from Maven when declaring the Pulsar dependency, or are you aware of problems about this workaround?
   
   **Additional context**
   
   I'm currently using Pulsar 2.6.3, which brings in Swagger 1.5.21, but I'm planning to upgrade to the latest Pulsar version, which brings in Swagger 1.6.2, so this issue should apply also to newer versions.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #11313: Swagger dependency scope is too broad

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #11313:
URL: https://github.com/apache/pulsar/issues/11313#issuecomment-1058888226


   The issue had no activity for 30 days, mark with Stale label.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org