Minor polish to gradle build

This commit is contained in:
Phillip Webb 2013-07-30 10:33:52 -07:00
parent 1fee4c0c0b
commit 9ff9d45283
1 changed files with 19 additions and 16 deletions

View File

@ -63,6 +63,9 @@ configure(allprojects) { project ->
test { test {
systemProperty("java.awt.headless", "true") systemProperty("java.awt.headless", "true")
systemProperty("testGroups", project.properties.get("testGroups")) systemProperty("testGroups", project.properties.get("testGroups"))
scanForTestClasses = false
include '**/*Tests.*'
exclude '**/*Abstract*.*'
} }
repositories { repositories {
@ -157,7 +160,7 @@ project("spring-build-src") {
dependencies { dependencies {
compile gradleApi() compile gradleApi()
groovy localGroovy() compile localGroovy()
} }
configurations.archives.artifacts.clear() configurations.archives.artifacts.clear()
@ -661,21 +664,6 @@ project("spring-webmvc-portlet") {
project("spring-test") { project("spring-test") {
description = "Spring TestContext Framework" description = "Spring TestContext Framework"
task testNG(type: Test) {
useTestNG()
// "TestCase" classes are run by other test classes, not the build.
exclude "**/*TestCase.class"
// Generate TestNG reports alongside JUnit reports.
testReport true
}
test {
dependsOn testNG
useJUnit()
// "TestCase" classes are run by other test classes, not the build.
exclude(["**/*TestCase.class", "**/*TestSuite.class"])
}
dependencies { dependencies {
compile(project(":spring-core")) compile(project(":spring-core"))
optional(project(":spring-beans")) optional(project(":spring-beans"))
@ -700,6 +688,21 @@ project("spring-test") {
testCompile "org.slf4j:slf4j-jcl:${slf4jVersion}" testCompile "org.slf4j:slf4j-jcl:${slf4jVersion}"
testCompile("hsqldb:hsqldb:${hsqldbVersion}") testCompile("hsqldb:hsqldb:${hsqldbVersion}")
} }
task testNG(type: Test) {
useTestNG()
// "TestCase" classes are run by other test classes, not the build.
exclude "**/*TestCase.class"
// Generate TestNG reports alongside JUnit reports.
testReport true
}
test {
dependsOn testNG
useJUnit()
// "TestCase" classes are run by other test classes, not the build.
exclude(["**/*TestCase.class", "**/*TestSuite.class"])
}
} }
project("spring-test-mvc") { project("spring-test-mvc") {