Skip to content

Commit

Permalink
Fix classpath for ApplicationCommand and Exploded config
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Sep 21, 2021
1 parent f609d20 commit 62f5721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
protected void configureApplicationCommands(Project project) {
def applicationContextCommands = FactoriesLoaderSupport.loadFactoryNames(APPLICATION_CONTEXT_COMMAND_CLASS)
project.afterEvaluate {
FileCollection fileCollection = buildClasspath(project, project.configurations.runtime, project.configurations.console)
FileCollection fileCollection = buildClasspath(project, project.configurations.runtimeClasspath, project.configurations.console)
for (ctxCommand in applicationContextCommands) {
String taskName = GrailsNameUtils.getLogicalPropertyName(ctxCommand, "Command")
String commandName = GrailsNameUtils.getScriptName(GrailsNameUtils.getLogicalName(ctxCommand, "Command"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class GrailsPluginGradlePlugin extends GrailsGradlePlugin {

ConfigurationContainer allConfigurations = project.configurations

def runtimeConfiguration = allConfigurations.findByName('runtime')
def runtimeConfiguration = allConfigurations.findByName('runtimeClasspath')
def explodedConfig = allConfigurations.create('exploded')
explodedConfig.extendsFrom(runtimeConfiguration)
if(Environment.isDevelopmentRun() && isExploded(project)) {
Expand Down

0 comments on commit 62f5721

Please sign in to comment.