forked from jodconverter/jodconverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (36 loc) · 1.4 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
import org.jodconverter.Deps
ext.moduleName = 'JODConverter Cli'
ext.moduleDescription = 'Client command line tool module of the Java OpenDocument Converter (JODConverter) project.'
dependencies {
implementation project(":jodconverter-local")
implementation project(":jodconverter-remote")
implementation Deps.commonsCli
implementation Deps.commonsIo
implementation Deps.springCore
implementation Deps.springContext
runtimeOnly Deps.slf4jLog4j // Runtime so it is included in the distribution
testImplementation Deps.mockitoInline
testImplementation Deps.springTest
testImplementation Deps.wiremock
}
// Create an executable for the client module
// todo: include documentation with the distibution
// See https://docs.gradle.org/current/userguide/application_plugin.html
apply plugin: 'application'
mainClassName = "org.jodconverter.cli.Convert"
// Copy the conf folder into the distribution
applicationDistribution.from("conf/") {
into "conf"
}
// Copy the README
applicationDistribution.from("README.txt") {
into ""
}
// use the log4j.properties from the configuration directory
applicationDefaultJvmArgs = ["-Dlog4j.configuration=file:MY_APP_HOME/conf/log4j.properties"]
startScripts {
doLast {
unixScript.text = unixScript.text.replace('MY_APP_HOME', '$APP_HOME')
windowsScript.text = windowsScript.text.replace('MY_APP_HOME', '%APP_HOME%')
}
}