apply plugin: 'java' apply plugin: 'groovy' apply plugin: 'javadocHotfix' apply plugin: 'eclipse-wtp' apply plugin: 'propdeps' apply plugin: 'propdeps-idea' apply plugin: 'propdeps-eclipse' group = 'org.springframework.session' ext.jstlVersion = '1.2.1' ext.servletApiVersion = '3.0.1' ext.springSecurityVersion = '3.2.4.RELEASE' ext.springVersion = '4.0.2.RELEASE' ext.groovyVersion = '2.0.5' ext.seleniumVersion = '2.33.0' ext.spockVersion = '0.7-groovy-2.0' ext.gebVersion = '0.9.0' ext.spockDependencies = [ dependencies.create("org.spockframework:spock-core:$spockVersion") { exclude group: 'junit', module: 'junit-dep' } ] ext.gebDependencies = spockDependencies + [ "org.seleniumhq.selenium:selenium-htmlunit-driver:$seleniumVersion", "org.gebish:geb-spock:$gebVersion", 'commons-httpclient:commons-httpclient:3.1', "org.codehaus.groovy:groovy:$groovyVersion" ] ext.jstlDependencies = [ "javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:$jstlVersion", "org.apache.taglibs:taglibs-standard-jstlel:1.2.1" ] repositories { mavenCentral() maven { url 'http://clojars.org/repo' } } // Integration test setup configurations { integrationTestCompile { extendsFrom testCompile, optional, provided } integrationTestRuntime { extendsFrom integrationTestCompile, testRuntime } } sourceSets { integrationTest { java.srcDir file('src/integration-test/java') groovy.srcDirs file('src/integration-test/groovy') resources.srcDir file('src/integration-test/resources') compileClasspath = sourceSets.main.output + sourceSets.test.output + configurations.integrationTestCompile runtimeClasspath = output + compileClasspath + configurations.integrationTestRuntime } } task integrationTest(type: Test, dependsOn: jar) { testClassesDir = sourceSets.integrationTest.output.classesDir logging.captureStandardOutput(LogLevel.INFO) classpath = sourceSets.integrationTest.runtimeClasspath maxParallelForks = 1 reports { html.destination = project.file("$project.buildDir/reports/integration-tests/") junitXml.destination = project.file("$project.buildDir/integration-test-results/") } } project.idea.module { scopes.TEST.plus += [project.configurations.integrationTestRuntime] }