Browse Source

SEC-2229: spring-security-web dependency polish

- remove direct dependency on spring-aop
- spring-tx and spring-jdbc optional
Rob Winch 12 years ago
parent
commit
7d1d856729
2 changed files with 11 additions and 22 deletions
  1. 7 17
      web/pom.xml
  2. 4 5
      web/web.gradle

+ 7 - 17
web/pom.xml

@@ -61,12 +61,6 @@
       <version>3.2.0.CI-SNAPSHOT</version>
       <scope>compile</scope>
     </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-aop</artifactId>
-      <version>3.2.3.RELEASE</version>
-      <scope>compile</scope>
-    </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
@@ -98,28 +92,24 @@
       <scope>compile</scope>
     </dependency>
     <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-jdbc</artifactId>
-      <version>3.2.3.RELEASE</version>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <version>1.1.1</version>
       <scope>compile</scope>
+      <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
-      <artifactId>spring-tx</artifactId>
+      <artifactId>spring-jdbc</artifactId>
       <version>3.2.3.RELEASE</version>
       <scope>compile</scope>
+      <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
-      <artifactId>spring-web</artifactId>
+      <artifactId>spring-tx</artifactId>
       <version>3.2.3.RELEASE</version>
       <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-      <version>1.1.1</version>
-      <scope>compile</scope>
       <optional>true</optional>
     </dependency>
     <dependency>

+ 4 - 5
web/web.gradle

@@ -3,15 +3,14 @@ apply plugin: 'groovy'
 dependencies {
     compile project(':spring-security-core'),
             'aopalliance:aopalliance:1.0',
-            "org.springframework:spring-aop:$springVersion",
             "org.springframework:spring-beans:$springVersion",
             "org.springframework:spring-context:$springVersion",
-            "org.springframework:spring-expression:$springVersion",
-            "org.springframework:spring-jdbc:$springVersion",
-            "org.springframework:spring-tx:$springVersion",
+            "org.springframework:spring-expression:$springVersion"
             "org.springframework:spring-web:$springVersion"
 
-    optional "org.springframework:spring-webmvc:$springVersion"
+    optional "org.springframework:spring-webmvc:$springVersion",
+            "org.springframework:spring-jdbc:$springVersion",
+            "org.springframework:spring-tx:$springVersion"
 
     provided "org.apache.tomcat:tomcat-servlet-api:$servletApiVersion"