Closed puneetbehl closed 3 weeks ago
Same issue!
@puneetbehl Rather than the problem being resources.groovy
, in my experience it's the directory grails-app/conf/spring
not being created beforehand. Whether that's something grails create-app
should do or the s2-quickstart
invocation should check and fix, I don't know.
But for sure / confirmed, if I create the grails-app/conf/spring
directory before running s2-quickstart
, all goes according to plan.
update
In my case, the s2-quickstart
fails after creating User.groovy
in the grails-app/domain
directory and UserPasswordEncoderListener.groovy
in the src/main/groovy
directory. If I delete those two files and create the grails-app/conf/spring
directory and then re-run s2-quickstart
, I end up with a working situation and seemingly no ill effects.
@monetschemist I believe the s2-quickstart
command should work without the need for directory to exits beforehand.
@puneetbehl I think you must be correct. Do other parts of the Grails ecosystem use grails-app/conf/spring
? If so, do they create the directory if necessary?
@puneetbehl today, 28 October 2024, I created my first project using Grails 6.2.1 and then ran s2-quickstart
, forgetting to create the grails-app/conf/spring
directory beforehand. Nevertheless, s2-quickstart
ran fine. I attribute this to Grails 6.2.1 creating the directory, since I continue to use the same Spring Security Core plugin version 6.1.1 as before.
Expected Behavior
I believe it should automatically create the
resources.groovy
file if it does not exists, otherwise it should add to the existing file.Actual Behaviour
The build failed while running the command
The Command Line Logs:
Steps To Reproduce
Either Forge from https://start.grails.org or create new Grails application from the Grails CLI.
Add the Spring Security Core Plugin dependency to the build.gradle file, as:
Execute the
s2-quickstart
command from Gradle as:Environment Information
Example Application
No response
Version
6.1.2