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

feat!: EXPOSED-476 Update Kotlin to 2.0.0 #2188

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Conversation

bog-walk
Copy link
Member

@bog-walk bog-walk commented Aug 5, 2024

Description

Summary of the change: Bump Kotlin version to 2.0.0 in all places (as well as kotlinx.serialization plugin)

Detailed description:

  • What:
    • Kotlin version has been updated to 2.0.0 in all project and sample build files.
      • All 3 samples and getting-started snippet have been confirmed to run as expected
    • Compiler errors and some warnings on inspection have been addressed.
  • How:
    • Fix compiler error for: 'Type argument can't be inferred with eq'
    • Fix all compiler warnings for:
      • KDocs: Cannot resolve symbol
      • Unused suppressions
      • Redundant if statements
      • Remove explicit type arguments
      • Sealed sub-object can be converted to data object
      • Value of '?' is always null
      • Deprecated: kotlinOptions and newInstance()
      • Unused parameters
      • Implicit parameter shadowed

Type of Change

Please mark the relevant options with an "X":

  • New feature
  • Version bump

Affected databases:

  • All

Checklist

  • The build is green (including the Detekt check)
  • All public methods affected by my PR has up to date API docs
  • Documentation for my change is up to date

Related Issues

EXPOSED-476

@bog-walk bog-walk requested a review from e5l August 5, 2024 01:35
object ForUpdate : ForUpdateOption("FOR UPDATE")
data object ForUpdate : ForUpdateOption("FOR UPDATE")
Copy link
Member Author

Choose a reason for hiding this comment

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

@e5l Changes in this file are based on suggestion that 'Sealed sub-object can be converted to data object'. Given that it is an API change, would it be better to not include it in this PR? Or should I add it as a small note to the breaking change docs?

Copy link
Member

Choose a reason for hiding this comment

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

let's include it

@bog-walk bog-walk changed the title feat: EXPOSED-476 Update Kotlin to 2.0.0 feat!: EXPOSED-476 Update Kotlin to 2.0.0 Aug 6, 2024
Bump Kotlin version to 2.0.0 (as well as kotlinx.serialization plugin)

Fix compiler error for:
- Type argument can't be inferred with eq

Fix all compiler warnings for:
- KDocs: Cannot resolve symbol
- Unused suppressions
- Redundant 'if' statements
- Remove explicit type arguments
- 'Sealed' sub-object can be converted to 'data object'
- Value of 'value' is always null
- Deprecated: 'kotlinOptions' nd 'newInstance()'
- Unused parameters
- Implicit parameter shadowed
Add line to Breaking change docs regarding conversion from object to data object.
@bog-walk bog-walk merged commit b64ad1e into main Aug 7, 2024
5 checks passed
@bog-walk bog-walk deleted the bog-walk/kotlin-2.0.0 branch August 7, 2024 23:22
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