@@ -133,8 +133,6 @@ class GrailsGradlePlugin extends GroovyPlugin {
133133
134134 registerFindMainClassTask(project)
135135
136- configureGrailsBuildSettings(project)
137-
138136 String grailsVersion = resolveGrailsVersion(project)
139137
140138 enableNative2Ascii(project, grailsVersion)
@@ -424,12 +422,6 @@ class GrailsGradlePlugin extends GroovyPlugin {
424422 }
425423 }
426424
427- @CompileStatic
428- protected String configureGrailsBuildSettings (Project project ) {
429- System . setProperty(BuildSettings . APP_BASE_DIR , project. projectDir. absolutePath)
430- System . setProperty(BuildSettings . PROJECT_TARGET_DIR , project. layout. buildDirectory. get(). asFile. name)
431- }
432-
433425 @CompileDynamic
434426 protected void configureApplicationCommands (Project project ) {
435427 def applicationContextCommands = FactoriesLoaderSupport . loadFactoryNames(APPLICATION_CONTEXT_COMMAND_CLASS )
@@ -543,6 +535,8 @@ class GrailsGradlePlugin extends GroovyPlugin {
543535 task. systemProperty(Metadata . APPLICATION_NAME , project. name)
544536 task. systemProperty(Metadata . APPLICATION_VERSION , (project. version instanceof Serializable ? project. version : project. version. toString()))
545537 task. systemProperty(Metadata . APPLICATION_GRAILS_VERSION , grailsVersion)
538+ task. systemProperty(BuildSettings . APP_BASE_DIR , project. projectDir. absolutePath)
539+ task. systemProperty(BuildSettings . PROJECT_TARGET_DIR , project. layout. buildDirectory. get(). asFile. name)
546540 task. systemProperty(Environment . KEY , defaultGrailsEnv)
547541 task. systemProperty(Environment . FULL_STACKTRACE , System . getProperty(Environment . FULL_STACKTRACE ) ?: ' ' )
548542 if (task. minHeapSize == null ) {
0 commit comments