Remove custom -PappArgs handling, gradle now supports --args

This commit is contained in:
AsamK 2021-09-12 19:20:21 +02:00
parent 627a587952
commit 12e85ec671
2 changed files with 4 additions and 9 deletions

View file

@ -64,12 +64,3 @@ tasks.withType<Jar> {
)
}
}
tasks.withType<JavaExec> {
val appArgs: String? by project
if (appArgs != null) {
// allow passing command-line arguments to the main application e.g.:
// $ gradle run -PappArgs="['-u', '+...', 'daemon', '--json']"
args = groovy.util.Eval.me(appArgs) as MutableList<String>
}
}