Skip to content

Conversation

markushi
Copy link
Member

📜 Description

Fixes #868

💡 Motivation and Context

Introduces two source sets, one compiled against 1.9.20 and one for 2.1.20 - this way binary incompatibility due to changes in default parameter values are avoided.

💚 How did you test it?

Manual testing

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
languageVersion = "1.9"
Copy link
Member

@romtsn romtsn Apr 30, 2025

Choose a reason for hiding this comment

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

not sure if it has to be a breaking change, but probably impact is quite low as it's nearly 2 years old.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me try to switch to the same version as the main plugin

Copy link
Member

Choose a reason for hiding this comment

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

I guess it's fine, we just have to check if the compiler plugin is going to work on kotlin < 1.9 with this options? I assume it probably should

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

LGTM! Great work 🚀

@markushi
Copy link
Member Author

markushi commented May 5, 2025

I finally finished the manual testing with the following Kotlin configurations (mixed in some Gradle, AGP, KSP versions as well):

  • Kotlin 1.8.21, (kotlinCompilerExtensionVersion 1.4.7)
  • Kotlin 1.9.25
  • Kotlin 2.0.21
  • Kotlin 2.1.0
  • Kotlin 2.1.20

@markushi markushi merged commit 2f90484 into main May 5, 2025
18 checks passed
@markushi markushi deleted the markushi/fix/kotlin-2-1-20-support branch May 5, 2025 06:29
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.

Plugin 5.4.0 causes build break with Kotlin 2.1.20

2 participants