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

Build warnings as errors #509

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open

Conversation

Tapchicoma
Copy link
Contributor

I've enabled warning-as-errors mode in build scripts and Gradle plugin compilation to avoid usages of deprecated methods.

@Tapchicoma Tapchicoma changed the base branch from master to develop February 10, 2025 08:55
@@ -267,7 +267,7 @@ private fun Project.withKotlinTargets(fn: (KotlinTarget) -> Unit) {
}
}

private fun KotlinCompile<*>.setFriendPaths(friendPathsFileCollection: FileCollection) {
private fun KotlinCompilationTask<*>.setFriendPaths(friendPathsFileCollection: FileCollection) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure KotlinCompilationTask type is available in KGP 1.7.0. In general, I think it is time to bump minimal supported versions of Gradle and KGP in this project.

Copy link
Collaborator

@mvicsokolova mvicsokolova Feb 10, 2025

Choose a reason for hiding this comment

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

AFUPlugin requires Kotlin plugin version to be at least 1.9.0 already, so I guess, it's ok?

It was hardcoded here, instead of using the declared const value :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With Kotlin 1.9.0 it should fine - this interface was introduced in Kotlin 1.8.0 alongside compilerOptions DSL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could try to update the logic to use the constant as I was also confused with it value. Are you ok with it?

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