forked from JVoiceXML/JVoiceXML
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (44 loc) · 2.04 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
apply plugin: 'java'
apply plugin: 'application'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
jvxmlConfiguration
}
dependencies {
jvxmlConfiguration fileTree(dir: "src/main/config")
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.2'
if (project.property('JVOICEXML_DEVELOPMENT_ENVIRONMENT') == 'true') {
compile project(':org.jvoicexml.client')
compile project(':org.jvoicexml.xml')
runtime project(':org.jvoicexml.jndi')
} else {
compile group: 'org.jvoicexml', name: 'org.jvoicexml.client', version: JVOICEXML_VERSION
compile group: 'org.jvoicexml', name: 'org.jvoicexml.xml', version: JVOICEXML_VERSION
runtime group: 'org.jvoicexml', name: 'org.jvoicexml.jndi', version: JVOICEXML_VERSION
}
}
jar {
version = JVOICEXML_VERSION
manifest {
attributes("Implementation-Title": "JVoiceXML Hello World Demo",
'Implementation-Vendor': 'switch',
'Implementation-Version': JVOICEXML_VERSION,
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}")
}
baseName 'org.jvoicexml.demo.gotodemo'
}
run {
mainClassName = "org.jvoicexml.demo.gotodemo.GotoDemo"
classpath += files("${buildDir}/resources/main")
jvmArgs = ["-Djvoicexml.config=${buildDir}/resources/main",
"-Djava.security.manager",
"-Djava.security.policy=${projectDir}/src/main/config/jvoicexml.policy"]
}