This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (59 loc) · 1.91 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
group 'ru.sbtqa.tag.pagefactory2example'
version '1.0'
defaultTasks 'test'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.qameta.allure:allure-gradle:2.8.1"
}
}
apply plugin: 'io.qameta.allure'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'java-library'
sourceCompatibility = 1.11
allure {
autoconfigure = false
aspectjweaver = true
version = '2.13.0'
resultsDir = file("${project.buildDir.path}/allure-results")
reportDir = file('/allure-report')
}
repositories {
mavenCentral()
}
def pf2version = "15.10.0"
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
compile group: 'io.github.longphamduc', name: 'courgette-jvm', version: '1.0.9'
compile group: 'ru.sbtqa.tag.pagefactory', name: 'html-plugin', version: pf2version
compile group: 'ru.sbtqa.tag.pagefactory', name: 'web-plugin', version: pf2version
compile group: 'ru.sbtqa.tag.pagefactory', name: 'rest-plugin', version: pf2version
compile group: 'ru.sbtqa.tag.pagefactory', name: 'web-plugin', version: pf2version
compile group: 'ru.yandex.qatools.htmlelements', name: 'htmlelements-java', version: '1.20.0'
compile group: 'ru.sbtqa.tag.datajack.providers', name: 'json-provider', version: '5.1.2'
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
systemProperties System.properties
}
tasks.withType(Test) {
systemProperties = System.getProperties()
}
task runCucumber(type: Test) {
include '**/ru/sbtqa/tag/pagefactory/CucumberTest.class'
outputs.upToDateWhen { false }
}
task runParallel(type: Test) {
include '**/ru/sbtqa/tag/pagefactory/CourgateTest.class'
outputs.upToDateWhen { false }
}