Skip to content

Commit

Permalink
Grails Gradle Plugin: Fixes run-command fails
Browse files Browse the repository at this point in the history
Also a workaround is to add the following to build.gradle:

```
runCommand {
  systemProperty "spring.devtools.restart.enabled", false
}
```
  • Loading branch information
rainboyan committed May 10, 2023
1 parent d22c06d commit cedad3c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
project.tasks.create('runScript', ApplicationContextScriptTask) {
classpath = project.sourceSets.main.runtimeClasspath + project.configurations.console + project.configurations.profile
systemProperty Environment.KEY, System.getProperty(Environment.KEY, Environment.DEVELOPMENT.getName())
systemProperty "spring.devtools.restart.enabled", false
if (project.hasProperty('args')) {
args(CommandLineParser.translateCommandline(project.args))
}
Expand All @@ -658,6 +659,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
project.tasks.create('runCommand', ApplicationContextCommandTask) {
classpath = project.sourceSets.main.runtimeClasspath + project.configurations.console + project.configurations.profile
systemProperty Environment.KEY, System.getProperty(Environment.KEY, Environment.DEVELOPMENT.getName())
systemProperty "spring.devtools.restart.enabled", false
if (project.hasProperty('args')) {
args(CommandLineParser.translateCommandline(project.args))
}
Expand Down

0 comments on commit cedad3c

Please sign in to comment.