You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2018/09/12 18:45:22 UTC
[sling-org-apache-sling-servlets-annotations] branch master
updated: SLING-7918 prevent transitive dependencies from being inherited by
referencing module
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-annotations.git
The following commit(s) were added to refs/heads/master by this push:
new 92464ce SLING-7918 prevent transitive dependencies from being inherited by referencing module
92464ce is described below
commit 92464cecf1ee5e57622652dd4168ab1f9df6ee68
Author: Konrad Windszus <ko...@netcentric.biz>
AuthorDate: Wed Sep 12 20:45:08 2018 +0200
SLING-7918 prevent transitive dependencies from being inherited by
referencing module
---
pom.xml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7173da0..959c104 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,27 +40,32 @@
</properties>
<dependencies>
+ <!-- all transitive dependencies should have scope "provided" to prevent classpath
+ pollution of referencing projects -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
<version>1.4.0</version><!-- for annotation @ComponentPropertyType -->
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component</artifactId>
<version>1.4.0</version><!-- for link in javadoc to default property types/annotations -->
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
<!-- https://issues.apache.org/jira/browse/SLING-6249, only for link in javadoc -->
<version>2.16.0</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
- <artifactId>javax.servlet-api</artifactId>
+ <artifactId>javax.servlet-api</artifactId><!-- for link in javadoc -->
+ <scope>provided</scope>
</dependency>
-
</dependencies>
</project>