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

Add compiler plugin dependency only for projects with KGP >= 1.6.20 #226

Merged
merged 2 commits into from May 16, 2022

Conversation

mvicsokolova
Copy link
Collaborator

Fixes #225

val (majorVersion, minorVersion, patch) = if (versions.size > 2) {
versions.take(3).map { it.toInt() }
} else {
versions.take(2).map { it.toInt() }.plus(0)
Copy link
Member

Choose a reason for hiding this comment

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

Is it a real case? 1.6.0 may return "1.6" from getKotlinPluginVersion?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Theoretically, it can return anything written to the project.properties file, but in practice only full kotlin versions 1.x.y are written there. So, I think, we can drop this check

Copy link
Member

Choose a reason for hiding this comment

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

Please do, otherwise it's dead code that will be puzzling us in the future

@qwwdfsad
Copy link
Member

Otherwise good to go

@mvicsokolova mvicsokolova merged commit 5527be0 into develop May 16, 2022
@mvicsokolova mvicsokolova deleted the compiler-plugin-dependency-fix branch May 16, 2022 13:20
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.

None yet

2 participants