Skip to content

Commit

Permalink
replace project.getProperties().get(key) with project.property(key)
Browse files Browse the repository at this point in the history
- extensions get initialized when getProperties gets called and that causes problems
  • Loading branch information
lhotari committed Mar 2, 2015
1 parent 3cf381a commit c5fb029
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
}

protected String resolveGrailsVersion(Project project) {
def grailsVersion = project.getProperties().get('grailsVersion')
def grailsVersion = project.property('grailsVersion')

if (!grailsVersion) {
def grailsCoreDep = project.configurations.getByName('compile').dependencies.find { Dependency d -> d.name == 'grails-core' }
Expand Down Expand Up @@ -208,7 +208,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
def shellTask = createShellTask(project, tasks, consoleConfiguration)

findMainClass.doLast {
def mainClassName = project.properties.get("mainClassName")
def mainClassName = project.property("mainClassName")
consoleTask.args mainClassName
shellTask.args mainClassName
project.tasks.withType(ApplicationContextCommandTask) { ApplicationContextCommandTask task ->
Expand Down

0 comments on commit c5fb029

Please sign in to comment.