opentcs/gradle/guice-application.gradle

30 lines
633 B
Groovy
Raw Normal View History

2024-11-30 18:36:13 +08:00
// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
apply from: "${rootDir}/gradle/guice-project.gradle"
apply plugin: 'application'
run {
dependsOn installDist
workingDir new File(new File(buildDir, 'install'), project.name)
enableAssertions true
classpath sourceSets.guiceConfig.output
}
task(debug, type:JavaExec) {
dependsOn installDist
doFirst {
workingDir = run.workingDir
enableAssertions = run.enableAssertions
main = run.main
args = run.args
classpath = run.classpath
jvmArgs = run.jvmArgs
systemProperties = run.systemProperties
debug true
}
}