This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch appmod/java-upgrade-20250910060318
in repository https://gitbox.apache.org/repos/asf/sling-samples.git

commit 96f63164db05e9e4b7116f022c2607db5eaf71e9
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Wed Sep 10 08:48:50 2025 +0200

    Added explicit dependency scopes required by enforcer plugin
---
 slingshot/pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/slingshot/pom.xml b/slingshot/pom.xml
index 2cb74e1..91e78e0 100644
--- a/slingshot/pom.xml
+++ b/slingshot/pom.xml
@@ -163,6 +163,7 @@
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.service.component.annotations</artifactId>
+            <scope>provided</scope>
         </dependency>
         <!-- Apache Sling -->
         <dependency>
@@ -192,10 +193,12 @@
         <dependency>
                <groupId>javax.jcr</groupId>
                <artifactId>jcr</artifactId>
+               <scope>provided</scope>
         </dependency>
         <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
+               <scope>provided</scope>
         </dependency>
         
         <!-- test dependencies -->
@@ -214,6 +217,7 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
@@ -236,6 +240,7 @@
         <dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-simple</artifactId>
+          <scope>test</scope>
         </dependency>
     </dependencies>
 </project>

Reply via email to