-
Notifications
You must be signed in to change notification settings - Fork 93
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
Cannot choose between the following variants (runtimeElements, shadowRuntimeElements) #71
Labels
bug
Something isn't working
Comments
Thanks for reporting, with reports like this our life is much easier 😄 We'll look into it and release a new version with a fix. Thanks! |
mrmans0n
added a commit
that referenced
this issue
Sep 17, 2022
Publishing `shadowRuntimeElements` variant can cause problems, so we will only be doing it when passing -PuberJar param to gradle. Fixes #71.
4 tasks
0.0.12-SNAPSHOT should have this, but I haven't tested detekt gradle yet (ktlint cli, kotlinter and detekt cli work tho). |
Just tested with detekt and works locally. Will publish 0.0.12 then :) |
Perfect! Thanks for the quick fix ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Since library version 0.0.10, we're facing an error when running detekt through Gradle:
It seems like this was introduced with
shadowJar
. I found related issues in the ktlint (pinterest/ktlint#1114) and detekt (detekt/detekt#3743, detekt/detekt#3969, detekt/detekt#3738) repositories. I also found a temporary workaround there:The detekt team solved it by not publishing the shadowRuntimeElements variant of detekt-cli anymore (detekt/detekt#3747).
To Reproduce
Steps to reproduce the behavior:
./gradlew detekt
The text was updated successfully, but these errors were encountered: