Browse Source

SEC-2229: Add optional dependencies to spring-security-config

spring-tx and spring-jdbc aren't pulled in transitively from
spring-security-web now, so we must include them as optional dependencies.
Rob Winch 12 years ago
parent
commit
d60108eaf6
4 changed files with 24 additions and 14 deletions
  1. 3 1
      config/config.gradle
  2. 14 12
      config/pom.xml
  3. 6 0
      web/pom.xml
  4. 1 1
      web/web.gradle

+ 3 - 1
config/config.gradle

@@ -20,7 +20,9 @@ dependencies {
              project(':spring-security-openid'),
              "org.springframework:spring-web:$springVersion",
              "org.springframework:spring-webmvc:$springVersion",
-             "org.aspectj:aspectjweaver:$aspectjVersion"
+             "org.aspectj:aspectjweaver:$aspectjVersion",
+             "org.springframework:spring-jdbc:$springVersion",
+             "org.springframework:spring-tx:$springVersion"
 
     provided "org.apache.tomcat:tomcat-servlet-api:$servletApiVersion"
 

+ 14 - 12
config/pom.xml

@@ -126,6 +126,20 @@
       <scope>compile</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-jdbc</artifactId>
+      <version>3.2.3.RELEASE</version>
+      <scope>compile</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-tx</artifactId>
+      <version>3.2.3.RELEASE</version>
+      <scope>compile</scope>
+      <optional>true</optional>
+    </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-web</artifactId>
@@ -326,12 +340,6 @@
       <version>3.2.3.RELEASE</version>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-jdbc</artifactId>
-      <version>3.2.3.RELEASE</version>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-orm</artifactId>
@@ -344,11 +352,5 @@
       <version>3.2.3.RELEASE</version>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-tx</artifactId>
-      <version>3.2.3.RELEASE</version>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
 </project>

+ 6 - 0
web/pom.xml

@@ -91,6 +91,12 @@
       <version>3.2.3.RELEASE</version>
       <scope>compile</scope>
     </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-web</artifactId>
+      <version>3.2.3.RELEASE</version>
+      <scope>compile</scope>
+    </dependency>
     <dependency>
       <groupId>commons-logging</groupId>
       <artifactId>commons-logging</artifactId>

+ 1 - 1
web/web.gradle

@@ -5,7 +5,7 @@ dependencies {
             'aopalliance:aopalliance:1.0',
             "org.springframework:spring-beans:$springVersion",
             "org.springframework:spring-context:$springVersion",
-            "org.springframework:spring-expression:$springVersion"
+            "org.springframework:spring-expression:$springVersion",
             "org.springframework:spring-web:$springVersion"
 
     optional "org.springframework:spring-webmvc:$springVersion",