Skip to content

Commit

Permalink
fixed issue updating default plugin versions with the upgrade command
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Oct 19, 2011
1 parent af16eb5 commit 3523178
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/Upgrade.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,15 @@ move it to the new location of '${basedir}/test/integration'. Please move the di
}

// Add the app name and Grails version to the metadata.
updateMetadata(metadata, ["app.name": "$grailsAppName", "app.grails.version": "$grailsVersion"])
def newMetadata = ["app.name": "$grailsAppName", "app.grails.version": "$grailsVersion"]
for(pluginEntry in grailsSettings.defaultPluginMap) {
def pluginName = pluginEntry.key
def pluginKey = "plugins.$pluginName".toString()
if(metadata.containsKey(pluginKey)) {
newMetadata[pluginKey] = pluginEntry.value
}
}
updateMetadata(metadata, newMetadata)

// proceed plugin-specific upgrade logic contained in 'scripts/_Upgrade.groovy' under plugin's root
def plugins = pluginSettings.pluginBaseDirectories
Expand Down

0 comments on commit 3523178

Please sign in to comment.