Skip to content
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

update to Kotlin 1.8 #1822

Merged
merged 3 commits into from
Aug 23, 2023
Merged

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

Update Kotlin version to 1.8.22

🔗 Related Issues

Update Kotlin version to 1.8.22
}
implementation(libs.ktor.client.content)
implementation(libs.slf4j)
testImplementation(projects.graphqlKotlinClientJackson)
testImplementation(projects.graphqlKotlinClientSerialization)
testImplementation(libs.wiremock.jre8)
testImplementation(libs.compile.testing)
testImplementation(libs.compile.testing) {
// there is no kotlin compile testing release supporting kotlin 1.8.22
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a workaround that should be removed once compatible version is available. Currently there is no release of kotlin-compile-testing that is compatible with kotlin version 1.8.22 :(

  • kotlin 1.8 compatible version is broken for compiler plugins (which we use) due to missing argument
  • we need version compatible with kotlin 1.8.20+ that includes a fix for a reflection bug
  • kotlin 1.9 compatible version fixes above issues .... but kotlin-serialization JARs are no longer published with shaded dependencies and we can no longer resolve the SerializationComponentRegistrar

Since there were no breaking API changes in the compile-testing library between the 1.8.22 and 1.9.0 versions, the simplest workaround for now is to explicitly exclude transitive compiler dependencies and explicitly include compatible versions.

@dariuszkuc
Copy link
Collaborator Author

Large number of changed files is due to kotlin-poet change to omit public modifier on overridden properties

@samuelAndalon samuelAndalon self-requested a review August 23, 2023 22:33
@dariuszkuc
Copy link
Collaborator Author

Note: we need to use Kotlin 1.8.20+ due to https://youtrack.jetbrains.com/issue/KT-53279

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

Successfully merging this pull request may close these issues.

None yet

2 participants