File: build.gradle

package info (click to toggle)
phantomjs 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 9,268 kB
  • ctags: 7,827
  • sloc: cpp: 6,363; ansic: 4,601; java: 2,041; python: 1,244; sh: 395; ruby: 48; cs: 27; xml: 14; makefile: 12
file content (43 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download | duplicates (2)
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
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"

task wrapper(type: Wrapper) {
    gradleVersion = "1.10"
    jarFile = "gradle/gradle-wrapper.jar"
}

repositories {
    mavenCentral()
}

ext.commonsFileUploadVersion = "1.3"
ext.seleniumVersion = "2.39.0"
ext.junitVersion = "4.11"
ext.jettyVersion = "6.1.21"
ext.jsr305Version = "2.0.1"
ext.phantomjsdriverVersion = "1.1.0"

dependencies {
    ["selenium-java", "selenium-remote-driver", "selenium-server"].each {
        testCompile "org.seleniumhq.selenium:$it:$seleniumVersion"
    }
    testCompile "com.google.code.findbugs:jsr305:$jsr305Version"
    testCompile "junit:junit-dep:$junitVersion"
    testCompile "org.mortbay.jetty:jetty:$jettyVersion"
    testCompile "commons-fileupload:commons-fileupload:$commonsFileUploadVersion"
    testCompile "com.github.detro.ghostdriver:phantomjsdriver:$phantomjsdriverVersion"
}

tasks.withType(JavaExec) {
    classpath = configurations.compile + sourceSets.test.output
    args project.hasProperty("args") ? project.args.split("\\s") : []
}

test {
    maxParallelForks = 3

    afterTest { descriptor, result ->
        logger.quiet(result.toString() + " for " + descriptor + " in " + descriptor.getParent())
    }
}