Skip to content

chore: migrate from deprecated KotlinCompilerVersion and kotlinOptions to compilerOptions DSL#479

Merged
marandaneto merged 3 commits intomainfrom
chore/migrate-deprecated-kotlin-dsl
Apr 9, 2026
Merged

chore: migrate from deprecated KotlinCompilerVersion and kotlinOptions to compilerOptions DSL#479
marandaneto merged 3 commits intomainfrom
chore/migrate-deprecated-kotlin-dsl

Conversation

@marandaneto
Copy link
Copy Markdown
Member

💡 Motivation and Context

The Kotlin Gradle Plugin deprecated KotlinCompilerVersion (scheduled for removal in Kotlin 2.2) and kotlinOptions/KotlinJvmOptions in favor of the new compilerOptions DSL.

This PR migrates all usages across the project to eliminate these deprecation warnings during CI builds, while maintaining the same compiler settings and compatibility targets.

💚 How did you test it?

  • make compile — builds successfully with no deprecation warnings for KotlinCompilerVersion or kotlinOptions
  • make testJava — all core tests pass
  • make checkFormat — formatting is clean

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran pnpm changeset to generate a changeset file
  • Added the "release" label to the PR to indicate we're publishing new versions for the affected packages

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

posthog-android Compliance Report

Date: 2026-04-09 07:31:45 UTC
Duration: 197ms

✅ All Tests Passed!

0/0 tests passed


@marandaneto marandaneto marked this pull request as ready for review April 9, 2026 07:26
@marandaneto marandaneto requested a review from a team as a code owner April 9, 2026 07:26
@marandaneto
Copy link
Copy Markdown
Member Author

still generates bytecode 52 so all good with the changes

@marandaneto marandaneto enabled auto-merge (squash) April 9, 2026 07:26
Copy link
Copy Markdown
Contributor

@ioannisj ioannisj left a comment

Choose a reason for hiding this comment

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

LG, compiles for me as well

@marandaneto marandaneto merged commit 3f2e877 into main Apr 9, 2026
13 checks passed
@marandaneto marandaneto deleted the chore/migrate-deprecated-kotlin-dsl branch April 9, 2026 09:14
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