SEC-2324: Update Spring Security tld version

This commit is contained in:
Rob Winch 2013-09-18 17:40:00 -05:00
parent c156716be8
commit d33b9e2854
3 changed files with 26 additions and 1 deletions

View File

@ -6,7 +6,7 @@
version="2.0">
<description>Spring Security Authorization Tag Library</description>
<tlib-version>3.1</tlib-version>
<tlib-version>3.2</tlib-version>
<short-name>security</short-name>
<uri>http://www.springframework.org/security/tags</uri>

View File

@ -0,0 +1,17 @@
package org.springframework.security.taglibs
import groovy.util.slurpersupport.GPathResult
import spock.lang.Specification
class TldTests extends Specification {
def "SEC-2324: tld version is correct"() {
when:
File securityTld = new File('src/main/resources/META-INF/security.tld')
GPathResult tldRoot = new XmlSlurper().parse(securityTld)
then:
String version = System.getProperty('springSecurityVersion');
version.startsWith(tldRoot.'tlib-version'.text())
}
}

View File

@ -1,4 +1,5 @@
// Taglibs build file
apply plugin: 'groovy'
dependencies {
compile project(':spring-security-core'),
@ -13,5 +14,12 @@ dependencies {
provided 'javax.servlet:jsp-api:2.0',
"org.apache.tomcat:tomcat-servlet-api:$servletApiVersion"
testCompile "org.codehaus.groovy:groovy-all:$groovyVersion",
"org.spockframework:spock-core:$spockVersion"
testRuntime "javax.servlet:jstl:$jstlVersion"
}
configure([test,spring4Test]) {
systemProperties['springSecurityVersion'] = version
}