Skip to content

Commit 99999b0

Browse files
davydotcomCopilot
andauthored
Update plugin-core/plugin/grails-app/commands/grails.plugin.springsecurity/S2QuickstartCommand.groovy
Co-authored-by: Copilot <[email protected]>
1 parent 8ab0d1b commit 99999b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin-core/plugin/grails-app/commands/grails.plugin.springsecurity/S2QuickstartCommand.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Example: ./grailsw s2-quickstart --uiOnly
315315
if (pluginClassFile.exists()) {
316316
pluginClassFile.eachLine { line, nb ->
317317
lines << line
318-
if(line.contains('package')) {
318+
if(line.trim().startsWith('package ')) {
319319
beans.forEach(bean -> lines.add(bean.import))
320320
}
321321
if (line.contains('doWithSpring()')) {

0 commit comments

Comments
 (0)