grails / grails-spring-security-core

Grails Spring Security Core Plugin
Apache License 2.0
261 stars 223 forks source link

UserPasswordEncoderListener.groovy: 8: unable to resolve class grails.events.annotation.gorm.Listener #996

Open muehlboeck opened 10 months ago

muehlboeck commented 10 months ago

Expected Behavior

application should run with ./gradlew bootRun

Actual Behaviour

./gradlew bootRun fails with: UserPasswordEncoderListener.groovy: 8: unable to resolve class grails.events.annotation.gorm.Listener

Steps To Reproduce

sdk use grails 6.1.1 sdk use groovy 3.0.11 sdk use java 11.0.21-sem

grails create-app test cd test create file grails-app/conf/spring/resources.groovy with content: beans = { }

./gradlew runCommand "-Pargs=s2-quickstart me.test.main User Role"

will complete

but:

./gradlew bootRun

fails

Environment Information

linux 22.04 sdk use grails 6.1.1 sdk use groovy 3.0.11 sdk use java 11.0.21-sem

Example Application

No response

Version

6.1.1

matrei commented 10 months ago

Should be fixed when 6.1.2 is released.

Can be worked around by adding:

implementation 'org.grails.plugins:events:5.0.2'
implementation 'org.grails.plugins:async:5.0.2'

Related grails/grails-core#13324 and grails/grails-core#13331

muehlboeck commented 10 months ago

Fantastic. This works for now. Thanks.

On Fri, Jan 5, 2024 at 1:27 AM Mattias Reichel @.***> wrote:

Should be fixed when 6.1.2 is released.

Can be worked around by adding:

implementation 'org.grails.plugins:events:5.0.2' implementation 'org.grails.plugins:async:5.0.2'

Related grails/grails-core#13324 https://github.com/grails/grails-core/issues/13324 and grails/grails-core#13331 https://github.com/grails/grails-core/pull/13331

— Reply to this email directly, view it on GitHub https://github.com/grails/grails-spring-security-core/issues/996#issuecomment-1878188463, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFVNCG7FWPQ3D3FIRFA3YDYM6MLJAVCNFSM6AAAAABBNT27DOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGE4DQNBWGM . You are receiving this because you authored the thread.Message ID: @.***>