Matija Sokol
11/12/2023, 11:42 AMapply plugin: libs.plugins.ktlint.get().getPluginId()
ktlint {
debug = true
android = true
version.set(libs.plugins.ktlint.get().getVersion().toString())
reporters {
reporter "html"
reporter "plain"
}
}
If I run ./gradlew ktlintFormat
, task execution fails with
Execution failed for task ':app:loadKtlintReporters'.
> Could not resolve all files for configuration ':app:ktlint'.
> Could not find com.pinterest:ktlint:11.5.1.
...
If I hardcode value version.set("0.50.0")
(or any other version) it works fine.Mario Niebes
11/12/2023, 12:47 PMMatija Sokol
11/12/2023, 12:52 PMktlint
version with ktlint gradle plugin
version. Thanks for noticing that.wakingrufus
11/13/2023, 8:33 PM