SEC-1326: Updating dependencies to match Spring versions. Removing unused deps.
This commit is contained in:
parent
89809e9029
commit
fcce29f8df
16
build.gradle
16
build.gradle
|
@ -1,3 +1,6 @@
|
||||||
|
|
||||||
|
import org.gradle.api.tasks.diagnostics.GraphvizReportRenderer
|
||||||
|
|
||||||
usePlugin('java')
|
usePlugin('java')
|
||||||
|
|
||||||
version = '3.0.0.CI-SNAPSHOT'
|
version = '3.0.0.CI-SNAPSHOT'
|
||||||
|
@ -11,13 +14,22 @@ allprojects {
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
usePlugin 'java'
|
usePlugin 'java'
|
||||||
springVersion = '3.0.0.RC3'
|
usePlugin 'project-reports'
|
||||||
|
|
||||||
|
springVersion = '3.0.0.RELEASE'
|
||||||
|
springLdapVersion = '1.3.0.RELEASE'
|
||||||
ehcacheVersion = '1.6.2'
|
ehcacheVersion = '1.6.2'
|
||||||
|
aspectjVersion = '1.6.5'
|
||||||
|
apacheDsVersion = '1.5.5'
|
||||||
|
|
||||||
|
/* dependencyReport {
|
||||||
|
renderer = new GraphvizReportRenderer()
|
||||||
|
}*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'commons-logging:commons-logging:1.1.1'
|
compile 'commons-logging:commons-logging:1.1.1'
|
||||||
|
|
||||||
testCompile 'junit:junit:4.6',
|
testCompile 'junit:junit:4.7',
|
||||||
'org.mockito:mockito-core:1.7',
|
'org.mockito:mockito-core:1.7',
|
||||||
'org.jmock:jmock:2.5.1',
|
'org.jmock:jmock:2.5.1',
|
||||||
'org.jmock:jmock-junit4:2.5.1',
|
'org.jmock:jmock-junit4:2.5.1',
|
||||||
|
|
|
@ -6,7 +6,7 @@ dependencies {
|
||||||
compile project(':core'),
|
compile project(':core'),
|
||||||
project(':web'),
|
project(':web'),
|
||||||
"javax.servlet:servlet-api:2.5",
|
"javax.servlet:servlet-api:2.5",
|
||||||
'org.aspectj:aspectjweaver:1.6.5',
|
"org.aspectj:aspectjweaver:$aspectjVersion",
|
||||||
"org.springframework:spring-aop:$springVersion",
|
"org.springframework:spring-aop:$springVersion",
|
||||||
"org.springframework:spring-core:$springVersion",
|
"org.springframework:spring-core:$springVersion",
|
||||||
"org.springframework:spring-context:$springVersion",
|
"org.springframework:spring-context:$springVersion",
|
||||||
|
@ -17,8 +17,9 @@ dependencies {
|
||||||
testCompile project(':ldap'),
|
testCompile project(':ldap'),
|
||||||
project(':openid'),
|
project(':openid'),
|
||||||
files(this.project(':core').sourceSets.test.classesDir),
|
files(this.project(':core').sourceSets.test.classesDir),
|
||||||
|
'javax.annotation:jsr250-api:1.0',
|
||||||
'aopalliance:aopalliance:1.0',
|
'aopalliance:aopalliance:1.0',
|
||||||
'org.springframework.ldap:spring-ldap-core:1.3.0.RELEASE',
|
"org.springframework.ldap:spring-ldap-core:$springLdapVersion",
|
||||||
"org.springframework:spring-jdbc:$springVersion"
|
"org.springframework:spring-jdbc:$springVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,8 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.tomcat</groupId>
|
<groupId>javax.annotation</groupId>
|
||||||
<artifactId>annotations-api</artifactId>
|
<artifactId>jsr250-api</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -11,11 +11,11 @@ dependencies {
|
||||||
"org.springframework:spring-jdbc:$springVersion",
|
"org.springframework:spring-jdbc:$springVersion",
|
||||||
"org.springframework:spring-tx:$springVersion",
|
"org.springframework:spring-tx:$springVersion",
|
||||||
"org.springframework:spring-web:$springVersion",
|
"org.springframework:spring-web:$springVersion",
|
||||||
'org.aspectj:aspectjrt:1.6.5',
|
"org.aspectj:aspectjrt:$aspectjVersion",
|
||||||
'org.aspectj:aspectjweaver:1.6.5',
|
"org.aspectj:aspectjweaver:$aspectjVersion",
|
||||||
'org.apache.tomcat:annotations-api:6.0.14'
|
'javax.annotation:jsr250-api:1.0'
|
||||||
|
|
||||||
runtime 'hsqldb:hsqldb:1.8.0.7'
|
runtime 'hsqldb:hsqldb:1.8.0.10'
|
||||||
|
|
||||||
testCompile 'commons-collections:commons-collections:3.2',
|
testCompile 'commons-collections:commons-collections:3.2',
|
||||||
"org.springframework:spring-test:$springVersion"
|
"org.springframework:spring-test:$springVersion"
|
||||||
|
|
|
@ -80,10 +80,10 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.tomcat</groupId>
|
<groupId>javax.annotation</groupId>
|
||||||
<artifactId>annotations-api</artifactId>
|
<artifactId>jsr250-api</artifactId>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>log4j</groupId>
|
<groupId>log4j</groupId>
|
||||||
<artifactId>log4j</artifactId>
|
<artifactId>log4j</artifactId>
|
||||||
|
|
|
@ -4,7 +4,6 @@ import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import javax.annotation.security.DenyAll;
|
|
||||||
import javax.annotation.security.PermitAll;
|
import javax.annotation.security.PermitAll;
|
||||||
import javax.annotation.security.RolesAllowed;
|
import javax.annotation.security.RolesAllowed;
|
||||||
|
|
||||||
|
@ -22,7 +21,6 @@ public class Jsr250MethodDefinitionSourceTests {
|
||||||
Jsr250MethodSecurityMetadataSource mds = new Jsr250MethodSecurityMetadataSource();
|
Jsr250MethodSecurityMetadataSource mds = new Jsr250MethodSecurityMetadataSource();
|
||||||
A a = new A();
|
A a = new A();
|
||||||
UserAllowedClass userAllowed = new UserAllowedClass();
|
UserAllowedClass userAllowed = new UserAllowedClass();
|
||||||
DenyAllClass denyAll = new DenyAllClass();
|
|
||||||
|
|
||||||
private ConfigAttribute[] findAttributes(String methodName) throws Exception {
|
private ConfigAttribute[] findAttributes(String methodName) throws Exception {
|
||||||
return mds.findAttributes(a.getClass().getMethod(methodName), null).toArray(new ConfigAttribute[0]);
|
return mds.findAttributes(a.getClass().getMethod(methodName), null).toArray(new ConfigAttribute[0]);
|
||||||
|
@ -42,20 +40,6 @@ public class Jsr250MethodDefinitionSourceTests {
|
||||||
assertEquals("javax.annotation.security.PermitAll", accessAttributes[0].toString());
|
assertEquals("javax.annotation.security.PermitAll", accessAttributes[0].toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void noRoleMethodHasDenyAllAttributeWithDenyAllClass() throws Exception {
|
|
||||||
ConfigAttribute[] accessAttributes = mds.findAttributes(denyAll.getClass()).toArray(new ConfigAttribute[0]);
|
|
||||||
assertEquals(1, accessAttributes.length);
|
|
||||||
assertEquals("javax.annotation.security.DenyAll", accessAttributes[0].toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void adminMethodHasAdminAttributeWithDenyAllClass() throws Exception {
|
|
||||||
Collection<ConfigAttribute> accessAttributes = mds.findAttributes(denyAll.getClass().getMethod("adminMethod"), null);
|
|
||||||
assertEquals(1, accessAttributes.size());
|
|
||||||
assertEquals("ADMIN", accessAttributes.toArray()[0].toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void noRoleMethodHasNoAttributes() throws Exception {
|
public void noRoleMethodHasNoAttributes() throws Exception {
|
||||||
Collection<ConfigAttribute> accessAttributes = mds.findAttributes(a.getClass().getMethod("noRoleMethod"), null);
|
Collection<ConfigAttribute> accessAttributes = mds.findAttributes(a.getClass().getMethod("noRoleMethod"), null);
|
||||||
|
@ -95,16 +79,4 @@ public class Jsr250MethodDefinitionSourceTests {
|
||||||
@RolesAllowed("ADMIN")
|
@RolesAllowed("ADMIN")
|
||||||
public void adminMethod() {}
|
public void adminMethod() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@DenyAll
|
|
||||||
public static class DenyAllClass {
|
|
||||||
|
|
||||||
public void noRoleMethod() {}
|
|
||||||
|
|
||||||
@RolesAllowed("ADMIN")
|
|
||||||
public void adminMethod() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,12 +8,12 @@ dependencies {
|
||||||
"org.springframework:spring-beans:$springVersion",
|
"org.springframework:spring-beans:$springVersion",
|
||||||
"org.springframework:spring-context:$springVersion",
|
"org.springframework:spring-context:$springVersion",
|
||||||
"org.springframework:spring-tx:$springVersion",
|
"org.springframework:spring-tx:$springVersion",
|
||||||
'org.springframework.ldap:spring-ldap-core:1.3.0.RELEASE',
|
"org.springframework.ldap:spring-ldap-core:$springLdapVersion",
|
||||||
'org.apache.directory.server:apacheds-core:1.5.5',
|
"org.apache.directory.server:apacheds-core:$apacheDsVersion",
|
||||||
'org.apache.directory.server:apacheds-core-entry:1.5.5',
|
"org.apache.directory.server:apacheds-core-entry:$apacheDsVersion",
|
||||||
'org.apache.directory.server:apacheds-protocol-shared:1.5.5',
|
"org.apache.directory.server:apacheds-protocol-shared:$apacheDsVersion",
|
||||||
'org.apache.directory.server:apacheds-protocol-ldap:1.5.5',
|
"org.apache.directory.server:apacheds-protocol-ldap:$apacheDsVersion",
|
||||||
'org.apache.directory.server:apacheds-server-jndi:1.5.5',
|
"org.apache.directory.server:apacheds-server-jndi:$apacheDsVersion",
|
||||||
'org.apache.directory.shared:shared-ldap:0.9.15',
|
'org.apache.directory.shared:shared-ldap:0.9.15',
|
||||||
'ldapsdk:ldapsdk:4.1'
|
'ldapsdk:ldapsdk:4.1'
|
||||||
|
|
||||||
|
|
13
pom.xml
13
pom.xml
|
@ -651,16 +651,23 @@
|
||||||
<artifactId>commons-collections</artifactId>
|
<artifactId>commons-collections</artifactId>
|
||||||
<version>3.2</version>
|
<version>3.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!--
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.tomcat</groupId>
|
<groupId>org.apache.tomcat</groupId>
|
||||||
<artifactId>annotations-api</artifactId>
|
<artifactId>annotations-api</artifactId>
|
||||||
<version>6.0.14</version>
|
<version>6.0.20</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.annotation</groupId>
|
||||||
|
<artifactId>jsr250-api</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>hsqldb</groupId>
|
<groupId>hsqldb</groupId>
|
||||||
<artifactId>hsqldb</artifactId>
|
<artifactId>hsqldb</artifactId>
|
||||||
<version>1.8.0.7</version>
|
<version>1.8.0.10</version>
|
||||||
<scope>runtime</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-logging</groupId>
|
<groupId>commons-logging</groupId>
|
||||||
|
|
|
@ -33,12 +33,6 @@
|
||||||
<artifactId>spring-jdbc</artifactId>
|
<artifactId>spring-jdbc</artifactId>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>jaxen</groupId>
|
|
||||||
<artifactId>jaxen</artifactId>
|
|
||||||
<version>1.1.1</version>
|
|
||||||
<scope>runtime</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>hsqldb</groupId>
|
<groupId>hsqldb</groupId>
|
||||||
<artifactId>hsqldb</artifactId>
|
<artifactId>hsqldb</artifactId>
|
||||||
<version>1.8.0.7</version>
|
<version>1.8.0.10</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.mortbay.jetty</groupId>
|
<groupId>org.mortbay.jetty</groupId>
|
||||||
<artifactId>maven-jetty-plugin</artifactId>
|
<artifactId>maven-jetty-plugin</artifactId>
|
||||||
<version>6.1.18</version>
|
<version>6.1.22</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<contextPath>/heavyduty</contextPath>
|
<contextPath>/heavyduty</contextPath>
|
||||||
<!--jettyConfig>jetty-jmx.xml</jettyConfig-->
|
<!--jettyConfig>jetty-jmx.xml</jettyConfig-->
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<properties>
|
<properties>
|
||||||
<spring.version>3.0.0.RC3</spring.version>
|
<spring.version>3.0.0.RELEASE</spring.version>
|
||||||
<spring.security.version>3.0.0.CI-SNAPSHOT</spring.security.version>
|
<spring.security.version>3.0.0.CI-SNAPSHOT</spring.security.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ dependencies {
|
||||||
compile project(':core'),
|
compile project(':core'),
|
||||||
'aopalliance:aopalliance:1.0',
|
'aopalliance:aopalliance:1.0',
|
||||||
'javax.servlet:servlet-api:2.5',
|
'javax.servlet:servlet-api:2.5',
|
||||||
'commons-codec:commons-codec:1.3',
|
|
||||||
'org.aspectj:aspectjweaver:1.6.5',
|
'org.aspectj:aspectjweaver:1.6.5',
|
||||||
"org.springframework:spring-aop:$springVersion",
|
"org.springframework:spring-aop:$springVersion",
|
||||||
"org.springframework:spring-core:$springVersion",
|
"org.springframework:spring-core:$springVersion",
|
||||||
|
@ -15,4 +14,6 @@ dependencies {
|
||||||
"org.springframework:spring-tx:$springVersion",
|
"org.springframework:spring-tx:$springVersion",
|
||||||
"org.springframework:spring-web:$springVersion",
|
"org.springframework:spring-web:$springVersion",
|
||||||
"org.springframework:spring-test:$springVersion"
|
"org.springframework:spring-test:$springVersion"
|
||||||
|
|
||||||
|
testCompile 'commons-codec:commons-codec:1.3'
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,12 +36,6 @@
|
||||||
<version>1.3</version>
|
<version>1.3</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>jaxen</groupId>
|
|
||||||
<artifactId>jaxen</artifactId>
|
|
||||||
<version>1.1.1</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>hsqldb</groupId>
|
<groupId>hsqldb</groupId>
|
||||||
<artifactId>hsqldb</artifactId>
|
<artifactId>hsqldb</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue