grails-spring-security-core icon indicating copy to clipboard operation
grails-spring-security-core copied to clipboard

Grails 7 - s2-quickstart does not create Requestmap domain

Open arjangch opened this issue 3 months ago • 4 comments

Expected Behavior

When i use this command as described in doc, ./gradlew runCommand "-Pargs=s2-quickstart com.arjang User Role Requestmap expected to create domain Requestmap

Actual Behaviour

It creates domains User Role and UserRole but does not create domain Requestmap

Steps To Reproduce

  1. Create a new grails 7 app
  2. add to build.gradle implementation 'org.apache.grails:grails-spring-security:7.0.0-RC2'
  3. then user command as described in doc ./gradlew runCommand "-Pargs=s2-quickstart com.arjang User Role Requestmap"
  4. Domain directory does not have a Requestmap.groovy file

Environment Information

java=21.0.8-zulu gradle=8.14.3 groovy=4.0.28 grails=7.0.0-RC1

Example Application

No response

Version

7

arjangch avatar Sep 14 '25 18:09 arjangch

@arjangch If you run this as the following are the results different?

./grailsw s2-quickstart com.arjang User Role Requestmap

jamesfredley avatar Sep 15 '25 20:09 jamesfredley

I just tested with two identical apps

  • ./grailsw s2-quickstart com.arjang User Role Requestmap works. All 4 domains are created.
  • ./gradlew runCommand "-Pargs=s2-quickstart com.arjang User Role Requestmap" does not work. Requestmap domain is not created.

arjangch avatar Sep 16 '25 11:09 arjangch

@arjangch Thank you. It appears that the gradle task has a bug that might have been there for a while. Thankfully the old way, which we plan to keep is working, unfortunately the docs point you to the gradle way.

jamesfredley avatar Sep 16 '25 20:09 jamesfredley

Documentation portion addressed on https://github.com/apache/grails-spring-security/pull/1175

Gradle Task vs Grails Script will be deferred for Grails 8.

jamesfredley avatar Sep 30 '25 18:09 jamesfredley