-
Notifications
You must be signed in to change notification settings - Fork 155
/
build.gradle
36 lines (28 loc) · 837 Bytes
/
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
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "is.arnlaugsson.chuck_joke.ChuckWeb"
repositories {
jcenter()
}
sourceSets {
selenium
}
dependencies {
// Application dependencies
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'net.joningi:icndb-java-api:1.0'
compile 'com.sparkjava:spark-core:2.5'
// Unit test dependencies
testCompile 'junit:junit:4.11'
// Selenium dependencies
seleniumCompile 'junit:junit:4.11'
seleniumCompile 'org.seleniumhq.selenium:selenium-firefox-driver:3.0.1'
seleniumCompile 'org.seleniumhq.selenium:selenium-chrome-driver:3.0.1'
}
task stage {
dependsOn installDist
}
task selenium(type: Test, dependsOn: installDist) {
testClassesDir = sourceSets.selenium.output.classesDir
classpath = sourceSets.selenium.runtimeClasspath
}