Skip to content

Commit 3733ee7

Browse files
committed
Allow creating plugins with the "plugin" profile only. Fixes #9988
1 parent 614acf3 commit 3733ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class CreatePluginCommand extends CreateAppCommand {
5454
protected boolean validateProfile(Profile profileInstance, String profileName, ExecutionContext executionContext) {
5555

5656
def pluginProfile = profileInstance.extends.find() { Profile parent -> parent.name == 'plugin' }
57-
if(pluginProfile == null) {
57+
if(profileName != 'plugin' && pluginProfile == null) {
5858
executionContext.console.error("No valid plugin profile found for name [$profileName]")
5959
return false
6060
}

0 commit comments

Comments
 (0)