Kotlin-dsl-samples: ktlint-convention experimental plugin check task is not relocatable

Created on 17 Apr 2018  路  3Comments  路  Source: gradle/kotlin-dsl-samples

Issue is upstream in ktlint-gradle and should be fixed there.

While we're at it, the report files of the tasks should be registered as outputs in order to make the task cacheable upstream. Currently our ktlint-convention does it.

The following lets Gradle consider files including their absolute path:

https://github.com/JLLeitschuh/ktlint-gradle/blob/1df11acd79d3d526c01e40e1feb6d0a7140ce060/plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/KtlintPlugin.kt#L223

Path sensitivity should instead be set to relative in order to make the cached task relocatable, see https://guides.gradle.org/using-build-cache/#relocatability

bug kotlin-dsl-plugins

Most helpful comment

I opened a PR changing the path sensitivity for the check task: https://github.com/JLLeitschuh/ktlint-gradle/pull/84

All 3 comments

Can you provide a few more details about what this means?

@JLLeitschuh details added to the issue description

I opened a PR changing the path sensitivity for the check task: https://github.com/JLLeitschuh/ktlint-gradle/pull/84

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xmlking picture xmlking  路  3Comments

AlexCzar picture AlexCzar  路  3Comments

mkobit picture mkobit  路  3Comments

iNikem picture iNikem  路  3Comments

jaredsburrows picture jaredsburrows  路  3Comments