This commit is contained in:
29
gradle/guice-application.gradle
Normal file
29
gradle/guice-application.gradle
Normal file
@@ -0,0 +1,29 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user