-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (42 loc) · 1.29 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
apply plugin: 'eclipse'
apply plugin: 'jetty'
version = "1.0.0"
repositories {
mavenLocal()
mavenCentral()
}
sourceCompatibility = '1.6'
dependencies {
compile 'com.nuecho:rivr-voicexml:1.0.0'
providedCompile 'javax.servlet:servlet-api:2.5'
testCompile 'junit:junit:4.10'
runtime 'org.glassfish:javax.json:1.0.3'
runtime 'ch.qos.logback:logback-classic:1.0.13'
}
eclipse{
classpath {
defaultOutputDir = file("${project.projectDir}/build/classes")
containers.clear()
containers.add("org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6")
}
}
war {
manifest.mainAttributes(
'Implementation-Title': 'rivr-hello-world',
'Implementation-Version': version,
'Implementation-Vendor': 'Nu Echo Inc.'
)
}
task wrapper(type: Wrapper) { gradleVersion = '1.6' }
import org.gradle.api.plugins.jetty.internal.Monitor
jettyRunWar {
daemon = true
} << {
// Workaround for bug http://issues.gradle.org/browse/GRADLE-2263
if (getStopPort() != null && getStopPort() > 0 && getStopKey() != null) {
Monitor monitor = new Monitor(getStopPort(), getStopKey(), server.getProxiedObject());
monitor.start();
}
}
[jettyRun, jettyRunWar,jettyStop]*.stopPort = 6666
[jettyRun, jettyRunWar,jettyStop]*.stopKey = 'stopKey'