/
build.gradle
100 lines (88 loc) · 3.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
dependencies {
testRuntime 'javax.servlet.jsp:jsp-api:2.1'
testRuntime 'jstl:jstl:1.1.2'
testRuntime 'javax.el:el-api:1.0'
testCompile "commons-io:commons-io:${commonsIOVersion}"
testCompile project(':grails-test-suite-base'),
project(':grails-plugin-testing'),
project(':grails-plugin-domain-class'),
project(':grails-plugin-codecs'),
project(':grails-plugin-datasource'),
project(':grails-plugin-i18n'),
project(':grails-plugin-servlets'),
project(':grails-plugin-async'),
project(':grails-plugin-log4j'),
project(':grails-plugin-url-mappings'),
project(':grails-plugin-services'),
project(':grails-web'),
project(':grails-web-databinding-spring')
testCompile "org.grails:grails-datastore-gorm-hibernate:$datastoreVersion", {
exclude group: 'org.grails', module:'grails-datastore-gorm'
exclude group: 'org.grails', module:'grails-datastore-core'
exclude group: 'org.springframework', module:'spring-core'
exclude group: 'org.springframework', module:'spring-context'
exclude group: 'org.springframework', module:'spring-web'
exclude group: 'org.springframework', module:'spring-beans'
exclude group: 'org.springframework', module:'spring-tx'
exclude group: 'org.slf4j', module:'jcl-over-slf4j'
exclude group: 'org.slf4j', module:'jul-to-slf4j'
exclude group: 'org.slf4j', module:'slf4j-api'
exclude group: 'org.slf4j', module:'slf4j-simple'
exclude group: 'org.grails', module:'grails-bootstrap'
exclude group: 'org.grails', module:'grails-plugin-domain-class'
exclude group: 'org.grails', module:'grails-core'
exclude group: 'org.grails', module:'grails-web'
exclude group: 'org.grails', module:'grails-test'
exclude group: 'org.grails', module:'grails-async'
exclude group: 'commons-collections', module:'commons-collections'
exclude group: 'commons-lang', module:'commons-lang'
exclude group: 'javassit', module:'javassist'
exclude group: 'java-persistence', module:'persistence-api'
exclude group: 'javassist', module: 'javassist'
}
// Required for tag library support
testCompile 'taglibs:standard:1.1.2'
testCompile "javax.servlet:jstl:1.1.2"
}
// javaee-web-api has a bad versions of classes we need to compile against
// Just remove it fromt the compile classpath here
configurations {
testCompile {
exclude module: "javaee-web-api"
}
}
compileTestGroovy {
groovyOptions.listFiles = true
}
def defaultTestConfig = {
maxParallelForks = isTravisBuild ? 2 : 4
forkEvery = isTravisBuild ? 10 : 100
excludes = ["**/*TestCase.class",
"**/*\$*.class"]
}
def isolatedTests = ["**/ContentFormatControllerTests.class",
"**/JSONBindingTests.class",
"**/AutoParams*MarshallingTests.class",
"**/JSONBindingToNullTests.class",
"**/ControllerWithXmlConvertersTests.class",
"**/GroovyPageAttributesTests.class",
"**/BindingExcludeTests.class",
"**/NestedXmlBindingTests.class",
"**/GSPResponseWriterSpec.class",
"**/RespondMethodSpec.class",
"**/ContentNegotiationSpec.class",
"**/pages/ext/jsp/*.class"]
task execIsolatedTests(type: Test) {
configure defaultTestConfig
forkEvery = 1
includes = isolatedTests
}
task createCombinedReport(type: TestReport) {
destinationDir = file("$buildDir/reports/allTests")
reportOn execIsolatedTests, test
}
test {
configure defaultTestConfig
excludes += isolatedTests
}
test.dependsOn execIsolatedTests