Skip to content

Add testing of Gradle 9 #766

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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add testing of Gradle 9 #766

wants to merge 1 commit into from

Conversation

melix
Copy link
Collaborator

@melix melix commented Aug 22, 2025

While investigating #760 , I added testing of Gradle 9 to our build. This caused a few cascading issues:

  1. we have to upgrade the Kotlin plugin version we use in tests to the latest 1.9.x branch
  2. doing so breaks the KotlinApplicationWithTestsFunctionalTest with a class initialized at build time error

This error only happens when testing with GraalVM 17, not with 23. The workaround I have found is to add:

kotlin.annotation.AnnotationTarget
kotlin.annotation.AnnotationRetention

to the list of classes initialized at build time, but I'm not completely sure this is the right thing to do. /cc @sbrannen @marcphilipp

In any case it seems that the original issue doesn't occur outside of the context of Spring.

@melix melix requested a review from dnestoro August 22, 2025 14:41
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant