opentcs/opentcs-kernelcontrolcenter/build.gradle

59 lines
1.7 KiB
Groovy
Raw Permalink Normal View History

2024-11-30 18:36:13 +08:00
// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
apply from: "${rootDir}/gradle/java-project.gradle"
apply from: "${rootDir}/gradle/java-codequality.gradle"
apply from: "${rootDir}/gradle/guice-application.gradle"
apply from: "${rootDir}/gradle/publishing-java.gradle"
if (!hasProperty('mainClass')) {
ext.mainClass = 'org.opentcs.kernelcontrolcenter.RunKernelControlCenter'
}
application.mainClass = ext.mainClass
ext.collectableDistDir = new File(buildDir, 'install')
dependencies {
api project(':opentcs-api-injection')
api project(':opentcs-common')
api project(':opentcs-commadapter-loopback')
api project(':opentcs-peripheralcommadapter-loopback')
api project(':opentcs-impl-configuration-gestalt')
runtimeOnly group: 'org.slf4j', name: 'slf4j-jdk14', version: '2.0.16'
}
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
distTar.enabled = false
task release {
dependsOn build
dependsOn installDist
}
run {
systemProperties(['java.util.logging.config.file':'./config/logging.config',\
'sun.java2d.d3d':'false',\
'opentcs.base':'.',\
'opentcs.home':'.',\
'opentcs.configuration.reload.interval':'10000',\
'opentcs.configuration.provider':'gestalt'])
jvmArgs('-XX:-OmitStackTraceInFastThrow',\
'-splash:bin/splash-image.gif')
}