File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
grace-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/core Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ import org.gradle.api.tasks.compile.GroovyCompile
3737import org.gradle.language.jvm.tasks.ProcessResources
3838import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry
3939import org.springframework.boot.gradle.tasks.bundling.BootJar
40+ import org.springframework.boot.gradle.tasks.run.BootRun
4041
4142import grails.util.Environment
4243
@@ -46,8 +47,8 @@ import org.grails.gradle.plugin.util.SourceSets
4647 * A Gradle plugin for Grails plugins
4748 *
4849 * @author Graeme Rocher
50+ * @author Michael Yan
4951 * @since 3.0
50- *
5152 */
5253@CompileStatic
5354class GrailsPluginGradlePlugin extends GrailsGradlePlugin {
@@ -126,9 +127,12 @@ class GrailsPluginGradlePlugin extends GrailsGradlePlugin {
126127 @Override
127128 protected void applySpringBootPlugin (Project project ) {
128129 super . applySpringBootPlugin(project)
129- project. tasks. withType(BootJar ) { BootJar bootJar ->
130+ project. tasks. withType(BootJar ). configureEach { BootJar bootJar ->
130131 bootJar. enabled = false
131132 }
133+ project. tasks. withType(BootRun ). configureEach { BootRun bootRun ->
134+ bootRun. enabled = false
135+ }
132136 }
133137
134138 @CompileDynamic
You can’t perform that action at this time.
0 commit comments