Skip to content

extend CI to run tests with JDK 21#1408

Merged
codecholeric merged 3 commits into
mainfrom
extend-CI-tested-Java-versions
Jan 20, 2025
Merged

extend CI to run tests with JDK 21#1408
codecholeric merged 3 commits into
mainfrom
extend-CI-tested-Java-versions

Conversation

@codecholeric
Copy link
Copy Markdown
Collaborator

This was previously blocked by our Gradle version being too old. Now that we can run the tests with JDK 21 it shows though, that the Annotation toString() behavior has changed again. Unfortunately, this always either causes complexity on the production or test side. If we want to test the AnnotationProxy.toString() behavior, then either we have to add a workaround to the test code, or we have to adjust the production code to produce the equivalent toString() value. I opted for the latter in hopes that they will finally stop changing the toString() style every couple of versions.

@codecholeric codecholeric force-pushed the extend-CI-tested-Java-versions branch 2 times, most recently from 40a5327 to 84dbd84 Compare January 20, 2025 00:11
Note that the plugin was passed on from `com.github.johnrengelman.shadow` to `com.gradleup.shadow`,
because the original maintainer has no capacity to maintain it anymore.

Signed-off-by: Peter Gafert <[email protected]>
We should rather extend the plugin instantiation logic to allow non-public constructors
than making it public to be possibly invoked by users.

Signed-off-by: Peter Gafert <[email protected]>
This was previously blocked by our Gradle version being too old.
Now that we can run the tests with JDK 21 it shows though,
that the `Annotation` `toString()` behavior has changed again.
Unfortunately, this always either causes complexity on the production or test side.
If we want to test the `AnnotationProxy.toString()` behavior,
then either we have to add a workaround to the test code,
or we have to adjust the production code to produce the equivalent `toString()` value.
I opted for the latter in hopes that they will finally stop changing the `toString()` style every couple of versions.

Signed-off-by: Peter Gafert <[email protected]>
@codecholeric codecholeric force-pushed the extend-CI-tested-Java-versions branch from 84dbd84 to 1102ae9 Compare January 20, 2025 09:59
@codecholeric codecholeric requested a review from hankem January 20, 2025 09:59
Comment thread build.gradle
@codecholeric codecholeric merged commit c44c16e into main Jan 20, 2025
@codecholeric codecholeric deleted the extend-CI-tested-Java-versions branch January 20, 2025 22:15
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

Successfully merging this pull request may close these issues.

2 participants