forked from touchmii/OpenTCS-4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (55 loc) · 2.09 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
55
56
57
58
59
60
61
62
63
64
apply from: "${rootDir}/gradle/java-project.gradle"
apply from: "${rootDir}/gradle/java-artifacts.gradle"
apply from: "${rootDir}/gradle/java-codequality.gradle"
apply from: "${rootDir}/gradle/guice-application.gradle"
apply from: "${rootDir}/gradle/maven-publishing.gradle"
apply from: "${rootDir}/gradle/license-headers.gradle"
apply plugin: 'org.kordamp.gradle.stats'
if (!hasProperty('mainClass')) {
ext.mainClass = 'org.opentcs.kernelcontrolcenter.RunKernelControlCenter'
}
mainClassName = ext.mainClass
ext.collectableDistDir = new File(buildDir, 'install')
dependencies {
compile project(':openTCS-API-Injection')
compile project(':openTCS-Common')
compile project(':openTCS-CommAdapter-Loopback')
compile project(':openTCS-Impl-Configuration-cfg4j')
compile project(':openTCS-Example-CommAdapter')
compile project(':openTCS-CommAdapter-Modbus')
compile project(':openTCS-CommAdapter-HTTP')
compile project(':openTCS-CommAdapter-Qian')
compile project(':openTCS-CommAdapter-Jbh')
compile project(':openTCS-CommAdapter-TCP')
compile project(':openTCS-CommAdapter-VREP')
compile project(':openTCS-CommAdapter-Serial')
compile project(':openTCS-CommAdapter-ROS-Bridge')
runtime group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.21'
}
compileJava {
options.compilerArgs << "-Xlint:-rawtypes"
}
distributions {
main {
contents {
from "${sourceSets.main.resources.srcDirs[0]}/org/opentcs/kernelcontrolcenter/distribution"
}
}
}
// For now, we're using hand-crafted start scripts, so disable the application plugin's start
// script generation.
startScripts.enabled = false
task release {
dependsOn build
dependsOn installDist
}
run {
systemProperties(['java.util.logging.config.file':'./config/logging.config',\
'java.security.policy':'file:./config/java.policy',\
'sun.java2d.d3d':'false',\
'opentcs.base':'.',\
'opentcs.home':'.',\
'opentcs.cfg4j.reload.interval':'10000'])
jvmArgs('-XX:-OmitStackTraceInFastThrow',\
'-splash:bin/splash-image.gif')
}