forked from selenide/selenide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (52 loc) · 1.5 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
group='com.codeborne'
archivesBaseName = 'selenide'
version='1.10-SNAPSHOT'
compileJava.options.debugOptions.debugLevel = "source,lines,vars"
sourceCompatibility = 1.6
targetCompatibility = 1.6
defaultTasks 'clean', 'libs', 'test', 'install'
repositories {
mavenCentral()
}
dependencies {
compile 'org.seleniumhq.selenium:selenium-java:2.28.0'
compile 'junit:junit:4.11'
compile fileTree(dir: 'lib', include: '*.jar')
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-all:1.9.5'
}
task libs(type: Sync) {
from configurations.compile
from configurations.runtime
from configurations.testCompile
into "$buildDir/lib"
}
test {
exclude 'com/codeborne/selenide/integrationtests/**'
systemProperties['browser'] = 'htmlunit'
// systemProperties['browser'] = 'chrome'
// systemProperties['webdriver.chrome.driver'] = '/usr/bin/chromedriver'
systemProperties 'file.encoding': 'UTF-8'
testLogging.showStandardStreams = true
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '1.3'
jarFile = './gradle-wrapper/gradle-wrapper.jar'
scriptFile = './gradle'
}