Skip to content

Groovy 5 support #14736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
matrei opened this issue May 14, 2025 · 1 comment
Open

Groovy 5 support #14736

matrei opened this issue May 14, 2025 · 1 comment

Comments

@matrei
Copy link
Contributor

matrei commented May 14, 2025

Issue description

This ticket will track issues with upgrading Grails to Groovy 5.

Compilation errors

Execution failed for task ':grails-datamapping-core:compileGroovy'.
> BUG! exception in phase 'semantic analysis' in source unit '/home/mattias/Projects/grails/grails-core/grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/GormEntity.groovy' ClassNode#getTypeClass for org.grails.datastore.gorm.GormEntityApi called before the type class is set
> Task :grails-core:compileGroovy
startup failed:
/home/mattias/Projects/grails/grails-core/grails-core/src/main/groovy/grails/boot/config/tools/ProfilingGrailsApplicationPostProcessor.groovy: 35: Can't have an abstract method in a non-abstract class. The class 'grails.boot.config.tools.ProfilingGrailsApplicationPostProcessor' must be declared abstract or the method 'void onApplicationEvent(E)' must be implemented.
 @ line 35, column 1.
   class ProfilingGrailsApplicationPostProcessor extends GrailsApplicationPostProcessor implements BeanPostProcessor {
   ^

1 error

Runtime errors

GPathResultMapSpec > Test nested elements FAILED
    groovy.lang.MissingFieldException: No such field: id for class: groovy.xml.slurpersupport.NodeChild
        at org.grails.databinding.xml.GPathResultMap.<init>(GPathResultMap.groovy:35)
        at org.grails.databinding.xml.GPathResultMapSpec.Test nested elements(GPathResultMapSpec.groovy:44)

Discussion: https://lists.apache.org/thread/9qz4xsmw702tgt45f2y8xz5h8ftj4tyl

Spock

Spock does not currently support Groovy 5

@matrei
Copy link
Contributor Author

matrei commented May 15, 2025

#14737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant