forked from linkedin/URL-Detector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
38 lines (28 loc) · 876 Bytes
/
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
boolean isDefaultEnvironment() {
!project.hasProperty('overrideBuildEnvironment')
}
File getEnvironmentScript()
{
final File env = file(defaultEnvironment ? 'defaultEnvironment.gradle' : project.overrideBuildEnvironment)
assert env.isFile() : "The environment script [$env] does not exists or is not a file."
return env
}
apply from: environmentScript
subprojects {
plugins.withType(JavaPlugin) {
dependencies {
testCompile spec.external.testng
compile spec.external.'commonsLang'
}
test {
afterSuite { desc, result ->
if (!desc.parent) {
println ":${project.name} -- Executed ${result.testCount} tests: ${result.successfulTestCount} succeeded, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped"
}
}
}
test.useTestNG() {
excludeGroups 'integration'
}
}
}