Skip to content

Commit d4474c4

Browse files
jeffscottbrowngraemerocher
authored andcommitted
Add more variables to the binding
Some properties are not being properly initialized in the project templates. See https://github.com/grails/grails-profile-repository/blob/b87bb2f637787e71aaf6f113411da892e7df313c/profiles/base/skeleton/grails-app/conf/application.yml#L7. We could go the other way around with this and just change the property names in the template config files since 2 of these values are already in the model under different names.
1 parent ec295f8 commit d4474c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

grails-shell/src/main/groovy/org/grails/cli/profile/commands/CreateAppCommand.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ class CreateAppCommand implements Command, ProfileRepositoryAware {
175175
variables['grails.codegen.projectName'] = GrailsNameUtils.getScriptName(projectClassName)
176176
variables['grails.profile'] = profile.name
177177
variables['grails.version'] = Environment.getPackage().getImplementationVersion() ?: GRAILS_VERSION_FALLBACK_IN_IDE_ENVIRONMENTS_FOR_RUNNING_TESTS
178+
variables['info.app.grailsVersion'] = Environment.getPackage().getImplementationVersion() ?: GRAILS_VERSION_FALLBACK_IN_IDE_ENVIRONMENTS_FOR_RUNNING_TESTS
179+
variables['info.app.version'] = '0.1-SNAPSHOT'
178180
variables['grails.app.name'] = appname
181+
variables['info.app.name'] = appname
179182
variables['grails.app.group'] = groupname
180183
}
181184

0 commit comments

Comments
 (0)