58 lines
1.6 KiB
Groovy
58 lines
1.6 KiB
Groovy
|
// 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.modeleditor.RunModelEditor'
|
||
|
}
|
||
|
application.mainClass = ext.mainClass
|
||
|
|
||
|
ext.collectableDistDir = new File(buildDir, 'install')
|
||
|
|
||
|
dependencies {
|
||
|
api project(':opentcs-common')
|
||
|
api project(':opentcs-impl-configuration-gestalt')
|
||
|
api project(':opentcs-plantoverview-common')
|
||
|
api project(':opentcs-plantoverview-themes-default')
|
||
|
|
||
|
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/modeleditor/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')
|
||
|
}
|