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

Setup dependency update group for detekt+kotlin #50

Open
imanushin opened this issue Apr 17, 2024 · 1 comment
Open

Setup dependency update group for detekt+kotlin #50

imanushin opened this issue Apr 17, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@imanushin
Copy link

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 magner669 added enhancement New feature or request good first issue Good for newcomers labels Apr 18, 2024
@magner669
Copy link

Note #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants