-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (52 loc) · 1.33 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.seleniumhq.selenium:selenium-java:3.141.59'
implementation 'org.testng:testng:6.14.3'
implementation 'org.seleniumhq.selenium:selenium-support:3.141.59'
implementation 'io.github.bonigarcia:webdrivermanager:3.3.0'
implementation 'com.sun.mail:javax.mail:1.6.2'
}
group = 'org.oktaliem'
version = '1.0-SNAPSHOT'
description = 'seleniummobsfscan'
java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.named('test') {
useTestNG()
}
test {
def url = System.properties['url']
if (url) {
// in java null system property can't be set: http://stackoverflow.com/questions/4323995/set-system-propery-to-null-in-java
systemProperty 'url', url
}
def path = System.properties['path']
if (path) {
systemProperty 'path', path
}
def buildName = System.properties['buildName']
if (buildName) {
systemProperty 'buildName', buildName
}
}