-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
51 lines (41 loc) · 1.36 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
apply plugin: 'java'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
mavenLocal()
jcenter()
}
dependencies {
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '3.141.59'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-firefox-driver', version: '3.141.59'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-ie-driver', version: '3.141.59'
testCompile 'albelli:junit.synnefo:0.17.1-a-jdk11-0001'
testCompile group: 'junit', name: 'junit', version: '4.13'
testCompile group: 'io.qameta.allure', name: 'allure-cucumber4-jvm', version: '2.10.0'
testRuntime("org.junit.vintage:junit-vintage-engine:5.5.2")
}
tasks.withType(Test) {
systemProperties = System.getProperties()
systemProperties.remove("java.endorsed.dirs")
}
shadowJar {
from sourceSets.test.output
configurations = [ project.configurations.testRuntime ]
archiveFileName = "fatjar.jar"
}
task runSynnefoTests(type: Test) {
dependsOn shadowJar
classpath = project.files( "$buildDir/libs/fatjar.jar", configurations.runtime )
outputs.upToDateWhen { false }
}