Citi / gradle-helm-plugin

A suite of Gradle Plugins for building, publishing and managing Helm Charts
https://citi.github.io/gradle-helm-plugin
MIT License
9 stars 6 forks source link

Setup dependency update group for detekt+kotlin #50

Open imanushin opened 5 months ago

imanushin commented 5 months ago

Problem: detekt requires to be run against the same language of Kotlin used for compilation. Otherwise it throws an exception like below.

To fix that, we can apply a dependency group, so detekt+kotlin will be updated together. See: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#example-3

Caused by: java.lang.IllegalStateException: detekt was compiled with Kotlin 1.9.23 but is currently running with 1.9.22.
This is not supported. See https://detekt.dev/docs/gettingstarted/gradle#dependencies for more information.
    at io.gitlab.arturbosch.detekt.cli.Main.buildRunner(Main.kt:55)
    ... 126 more
magner669 commented 5 months ago

Note #55