diff --git a/build.gradle b/build.gradle
index d95c0a9b22..5c837464b2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,6 @@
+
+import org.gradle.api.tasks.diagnostics.GraphvizReportRenderer
+
usePlugin('java')
version = '3.0.0.CI-SNAPSHOT'
@@ -11,13 +14,22 @@ allprojects {
subprojects {
usePlugin 'java'
- springVersion = '3.0.0.RC3'
+ usePlugin 'project-reports'
+
+ springVersion = '3.0.0.RELEASE'
+ springLdapVersion = '1.3.0.RELEASE'
ehcacheVersion = '1.6.2'
+ aspectjVersion = '1.6.5'
+ apacheDsVersion = '1.5.5'
+
+/* dependencyReport {
+ renderer = new GraphvizReportRenderer()
+ }*/
dependencies {
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.jmock:jmock:2.5.1',
'org.jmock:jmock-junit4:2.5.1',
diff --git a/config/build.gradle b/config/build.gradle
index 1f8b708741..78645a823a 100644
--- a/config/build.gradle
+++ b/config/build.gradle
@@ -6,7 +6,7 @@ dependencies {
compile project(':core'),
project(':web'),
"javax.servlet:servlet-api:2.5",
- 'org.aspectj:aspectjweaver:1.6.5',
+ "org.aspectj:aspectjweaver:$aspectjVersion",
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-context:$springVersion",
@@ -17,8 +17,9 @@ dependencies {
testCompile project(':ldap'),
project(':openid'),
files(this.project(':core').sourceSets.test.classesDir),
+ 'javax.annotation:jsr250-api: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"
}
diff --git a/config/pom.xml b/config/pom.xml
index fd3f131cea..ffe0b0a2cd 100644
--- a/config/pom.xml
+++ b/config/pom.xml
@@ -90,8 +90,8 @@
test
- org.apache.tomcat
- annotations-api
+ javax.annotation
+ jsr250-api
test
diff --git a/core/build.gradle b/core/build.gradle
index a11fd8440f..a005d0e822 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -11,11 +11,11 @@ dependencies {
"org.springframework:spring-jdbc:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-web:$springVersion",
- 'org.aspectj:aspectjrt:1.6.5',
- 'org.aspectj:aspectjweaver:1.6.5',
- 'org.apache.tomcat:annotations-api:6.0.14'
+ "org.aspectj:aspectjrt:$aspectjVersion",
+ "org.aspectj:aspectjweaver:$aspectjVersion",
+ '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',
"org.springframework:spring-test:$springVersion"
diff --git a/core/pom.xml b/core/pom.xml
index f33e4b6981..3e04e307fb 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -80,10 +80,10 @@
test
- org.apache.tomcat
- annotations-api
- true
-
+ javax.annotation
+ jsr250-api
+ true
+
log4j
log4j
diff --git a/core/src/test/java/org/springframework/security/access/annotation/Jsr250MethodDefinitionSourceTests.java b/core/src/test/java/org/springframework/security/access/annotation/Jsr250MethodDefinitionSourceTests.java
index 7c4f1662cb..fcd23d55d0 100644
--- a/core/src/test/java/org/springframework/security/access/annotation/Jsr250MethodDefinitionSourceTests.java
+++ b/core/src/test/java/org/springframework/security/access/annotation/Jsr250MethodDefinitionSourceTests.java
@@ -4,7 +4,6 @@ import static org.junit.Assert.assertEquals;
import java.util.Collection;
-import javax.annotation.security.DenyAll;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
@@ -22,7 +21,6 @@ public class Jsr250MethodDefinitionSourceTests {
Jsr250MethodSecurityMetadataSource mds = new Jsr250MethodSecurityMetadataSource();
A a = new A();
UserAllowedClass userAllowed = new UserAllowedClass();
- DenyAllClass denyAll = new DenyAllClass();
private ConfigAttribute[] findAttributes(String methodName) throws Exception {
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());
}
- @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 accessAttributes = mds.findAttributes(denyAll.getClass().getMethod("adminMethod"), null);
- assertEquals(1, accessAttributes.size());
- assertEquals("ADMIN", accessAttributes.toArray()[0].toString());
- }
-
@Test
public void noRoleMethodHasNoAttributes() throws Exception {
Collection accessAttributes = mds.findAttributes(a.getClass().getMethod("noRoleMethod"), null);
@@ -95,16 +79,4 @@ public class Jsr250MethodDefinitionSourceTests {
@RolesAllowed("ADMIN")
public void adminMethod() {}
}
-
- @DenyAll
- public static class DenyAllClass {
-
- public void noRoleMethod() {}
-
- @RolesAllowed("ADMIN")
- public void adminMethod() {}
- }
-
-
-
}
diff --git a/ldap/build.gradle b/ldap/build.gradle
index b767e40e53..de00e54c27 100644
--- a/ldap/build.gradle
+++ b/ldap/build.gradle
@@ -8,12 +8,12 @@ dependencies {
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-tx:$springVersion",
- 'org.springframework.ldap:spring-ldap-core:1.3.0.RELEASE',
- 'org.apache.directory.server:apacheds-core:1.5.5',
- 'org.apache.directory.server:apacheds-core-entry:1.5.5',
- 'org.apache.directory.server:apacheds-protocol-shared:1.5.5',
- 'org.apache.directory.server:apacheds-protocol-ldap:1.5.5',
- 'org.apache.directory.server:apacheds-server-jndi:1.5.5',
+ "org.springframework.ldap:spring-ldap-core:$springLdapVersion",
+ "org.apache.directory.server:apacheds-core:$apacheDsVersion",
+ "org.apache.directory.server:apacheds-core-entry:$apacheDsVersion",
+ "org.apache.directory.server:apacheds-protocol-shared:$apacheDsVersion",
+ "org.apache.directory.server:apacheds-protocol-ldap:$apacheDsVersion",
+ "org.apache.directory.server:apacheds-server-jndi:$apacheDsVersion",
'org.apache.directory.shared:shared-ldap:0.9.15',
'ldapsdk:ldapsdk:4.1'
diff --git a/pom.xml b/pom.xml
index 559ed74c4e..256f504e54 100644
--- a/pom.xml
+++ b/pom.xml
@@ -651,16 +651,23 @@
commons-collections
3.2
+
+
+ javax.annotation
+ jsr250-api
+ 1.0
+
+
hsqldb
hsqldb
- 1.8.0.7
- runtime
+ 1.8.0.10
commons-logging
diff --git a/samples/preauth/pom.xml b/samples/preauth/pom.xml
index 9e275b3edc..3a91d357ba 100644
--- a/samples/preauth/pom.xml
+++ b/samples/preauth/pom.xml
@@ -33,12 +33,6 @@
spring-jdbc
runtime
-
- jaxen
- jaxen
- 1.1.1
- runtime
-
diff --git a/sandbox/heavyduty/pom.xml b/sandbox/heavyduty/pom.xml
index cb7d538857..350990e362 100755
--- a/sandbox/heavyduty/pom.xml
+++ b/sandbox/heavyduty/pom.xml
@@ -78,7 +78,7 @@
hsqldb
hsqldb
- 1.8.0.7
+ 1.8.0.10
compile
@@ -179,7 +179,7 @@
org.mortbay.jetty
maven-jetty-plugin
- 6.1.18
+ 6.1.22
/heavyduty
@@ -204,7 +204,7 @@
- 3.0.0.RC3
+ 3.0.0.RELEASE
3.0.0.CI-SNAPSHOT
diff --git a/web/build.gradle b/web/build.gradle
index 6f8963df3b..425613b48b 100644
--- a/web/build.gradle
+++ b/web/build.gradle
@@ -4,7 +4,6 @@ dependencies {
compile project(':core'),
'aopalliance:aopalliance:1.0',
'javax.servlet:servlet-api:2.5',
- 'commons-codec:commons-codec:1.3',
'org.aspectj:aspectjweaver:1.6.5',
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-core:$springVersion",
@@ -15,4 +14,6 @@ dependencies {
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-test:$springVersion"
+
+ testCompile 'commons-codec:commons-codec:1.3'
}
diff --git a/web/pom.xml b/web/pom.xml
index b9f03a0d08..c5bdc8ac77 100644
--- a/web/pom.xml
+++ b/web/pom.xml
@@ -36,12 +36,6 @@
1.3
test
-
- jaxen
- jaxen
- 1.1.1
- true
-
hsqldb
hsqldb