Skip to content

Spring Framework v7 support #2260

Description

@anumalasri

Is your feature request related to a problem?

Need Support for Spring new versions

Spring Boot v4.x
Spring Framework v7.x
Junit v6.x (Already supported, see comment)

Describe the solution you'd like

Spock framework should be able to support latest version of Spring Boot and Spring Framework

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. AndreasTu commented on Nov 13, 2025

    @AndreasTu
    Member

    Could you be more specific what exactly does not work. Including a MCVE reproducing the issue.
    Please also make sure to test it with the latest Spock snapshot (see README), if you need Groovy 5 support.
    There is not yet a released version of Spock supporting Groovy 5, see #2196. The next release 2.4-M7 will include the Groovy 5 support.

    Note: JUnit 6 is supported. I have added tests for that with this commit

  2. Vampire commented on Nov 14, 2025

    @Vampire
    Member

    I quickly added tests locally for boot4 (4.0.0-RC2, #2261) and spring7 (7.0.0, #2262) based on our boot3 and spring6 tests and all worked fine without any problems.

  3. anumalasri commented on Nov 14, 2025

    @anumalasri
    Author

    Thanks @AndreasTu @Vampire for your update.

    Spring has removed spock dependency due, Groovy 5 support. Ref. Our intent was to find any updates required in spock-spring to support Spring Boot v4 and Spring Framework v7 ?

    Let us know if we have any specific Spock version to test the same from our end.

  4. Vampire commented on Nov 14, 2025

    @Vampire
    Member

    As we said, boot4 and spring7 is not a problem at all.
    And if you need Groovy 5 support, you can use the snapshot version as documented in the readme,
    and soon™️ the 2.4-M7 release which will include the Groovy 5 support.

    Closing for now as you not seem to have any problem or missing feature to report.
    Feel free to come back with problems you have and we can reopen this or you create new indiviual issues if you find indiviual problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions