-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
40 lines (33 loc) · 1.07 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin:'application'
apply plugin: 'jetty'
apply plugin: 'war'
mainClassName = "Application"
applicationName = "skeleton"
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
compile 'com.sparkjava:spark-template-freemarker:1.0'
compile 'com.sparkjava:spark-core:1.1.1'
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.+'
compile "com.github.detro.ghostdriver:phantomjsdriver:1.1.0"
compile 'org.apache.commons:commons-lang3:3.1'
compile 'org.mortbay.jetty:jetty-runner:8.1.14.v20131031'
testCompile 'junit:junit:4.11'
}
task copyToLib << {
copy {
from configurations.compile.copy().setTransitive(false)
into "$buildDir/libs"
rename { name ->
def artifacts = configurations.compile.resolvedConfiguration.resolvedArtifacts
def artifact = artifacts.find { it.file.name == name }
"${artifact.name}.${artifact.extension}"
}
}
}
task stage(dependsOn: ['clean', 'war', 'copyToLib'])