-
Notifications
You must be signed in to change notification settings - Fork 62
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
base: develop
Are you sure you want to change the base?
Conversation
This will force to address any plugin or Gradle deprecations in the build scripts on any update.
It is the deprecated interface.
…n and dependencies This OptIn is not available in the compilation classpath.
@@ -267,7 +267,7 @@ private fun Project.withKotlinTargets(fn: (KotlinTarget) -> Unit) { | |||
} | |||
} | |||
|
|||
private fun KotlinCompile<*>.setFriendPaths(friendPathsFileCollection: FileCollection) { | |||
private fun KotlinCompilationTask<*>.setFriendPaths(friendPathsFileCollection: FileCollection) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :(
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
I've enabled warning-as-errors mode in build scripts and Gradle plugin compilation to avoid usages of deprecated methods.