-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (32 loc) · 1.11 KB
/
build.gradle.kts
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
plugins {
`java-library`
}
repositories {
jcenter()
mavenLocal()
maven { setUrl("https://oss.jfrog.org/artifactory/oss-snapshot-local") }
maven { setUrl("https://oss.jfrog.org/artifactory/oss-release-local") }
}
configurations {
create("javaex")
}
dependencies {
"javaex"("de.dfki.mary:marytts-common:6.0.1-SNAPSHOT")
"javaex"("de.dfki.mary:marytts-lang-en:6.0.1-SNAPSHOT")
}
task(name="synthesize", type=JavaExec::class) {
description = "Synthesize default files"
// Add mary dependencies
classpath(configurations["javaex"])
// Add buildSrc to the class path
classpath(file("${rootDir}/buildSrc/build/libs/buildSrc.jar"))
// Define main class
main = "marytts.Synthesize"
// Define log configuration file
systemProperty("log4j.configurationFile", "src/log4j2.xml")
if (System.getProperties().containsKey("log4j.level")) {
systemProperty("log4j.level", System.getProperty("log4j.level"))
}
// arguments to pass to the application
args(project.file("src/text"), project.file("${buildDir}/output"), project.file("src/config.json"))
}