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

JDK 17 - Spring Security Core 5.0.0 (Latest) "Failed to compile s2-create-role-hierarchy-entry.groovy"

Open codeconsole opened this issue 3 years ago • 2 comments

Expected Behavior

Able to run the grails cli

Actual Behaviour

JDK 17 (61) is not supported by this plugin for no particularly good reason.

Simply adding the plugin to any existing grails project and executing run-app

% grails run-app
| Error Failed to compile s2-create-role-hierarchy-entry.groovy: BUG! exception in phase 'semantic analysis' in source unit 's2-create-role-hierarchy-entry.groovy' Unsupported class file major version 61 (Use --stacktrace to see the full trace)
| Error Command [run-app] error: Cannot invoke "org.grails.cli.profile.commands.script.GroovyScriptCommand.setProfile(org.grails.cli.profile.Profile)" because "data" is null (Use --stacktrace to see the full trace)

Steps To Reproduce

grails create-app exampleapp

    implementation "org.grails.plugins:spring-security-core:5.0.0" 

Environment Information

No response

Example Application

No response

Version

5.0.0

codeconsole avatar Jun 10 '22 14:06 codeconsole

https://github.com/grails-plugins/grails-spring-security-ui/issues/127

codeconsole avatar Jun 10 '22 15:06 codeconsole

Example App: https://github.com/codeconsole/grails4bugs

codeconsole avatar Jun 15 '22 16:06 codeconsole

Commenting for more attention to the issue! Another user.

abrahaj avatar Sep 05 '22 08:09 abrahaj

@abrahaj seems to be working find now with grails 5.2.3 https://github.com/codeconsole/grails4bugs

codeconsole avatar Sep 05 '22 22:09 codeconsole