-
Notifications
You must be signed in to change notification settings - Fork 216
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
Add support for JDK 21+ #1712
base: master
Are you sure you want to change the base?
Add support for JDK 21+ #1712
Conversation
.github/workflows/build.yml
Outdated
@@ -23,7 +23,7 @@ jobs: | |||
windows-latest, | |||
ubuntu-latest | |||
] | |||
java-version: [17, 18] | |||
java-version: [17, 18, 22] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider:
java-version: [17, 18, 22] | |
java-version: [17, 21, 22] |
So that it definitely works on LTS 21. Testing only on 22 could result in the library using 22-only features that are not in 21.
build.gradle
Outdated
// Enabled dynamic agent loading (ByteBuddy) for JDK 21+ https://openjdk.org/jeps/451 | ||
jvmArgs '-XX:+EnableDynamicAgentLoading' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do consumers need to add this too?
(i.e. should this be part of the plugin, behind a version check: JavaVersion.current()
or Test.javaVersion
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point let me update this 👍🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about making it part of the Paparazzi Gradle Plugin? If I added Paparazzi to a project running CI on 22, would I need to add this line too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I added this in my latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: if you have it in plugin, then is it still necessary in root build.gradle?
verified gradle java sdk and compile java sdk to 22 builds successfully. |
79ddb14
to
a162c95
Compare
f6b6214
to
4797778
Compare
paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Outdated
Show resolved
Hide resolved
4797778
to
e735b14
Compare
closed #565