-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
1.2.1 breaks the build with: unresolved reference: detekt #2152
Comments
Looking at your build file you should be able to remove You'll also need to change |
Thanks for your support. However, I couldn't get it working again. You can find a version with the changes you told me to do at the commit: d9c6c919675ac729658dfebbc73ad6c011f4b4c2 of the project.
No, I confirm I don't see any warning if I use |
I can also confirm I don't see any warning if I use config = with detekt: |
Verision 1.2.0 has a serious issue: detekt/detekt#2128 Version 1.2.1 breaks the build: detekt/detekt#2152
Restore the extension with a deprecation warning. See #2152
@jcornaz I've worked out what the issue is. 1.2.1 removed this Gradle extension: https://github.com/arturbosch/detekt/blob/1.2.0/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/KotlinExtension.kt It was there to allow the type-safe accessors to work in Gradle Kotlin DSL, which is why removing it causes failures in the build when type-safe accessors are not available. I see two options:
It probably does no harm to leave the extension in place, though it's not documented in the Gradle Kotlin DSL primer so it's probably not a supported workaround. Adding back with a deprecation message seems the best option. I'll open a PR.
@1951FDG @jcornaz my mistake, the deprecation wasn't on |
For details see [1]. Note that the "detekt" extension is automatically provided when applying the plugin to the root project, also see [2]. [1] https://arturbosch.github.io/detekt/changelog.html#121 [2] detekt/detekt#2152 (comment) Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch-si.com>
For details see [1]. Note that the "detekt" extension is automatically provided when applying the plugin to the root project, also see [2]. [1] https://arturbosch.github.io/detekt/changelog.html#121 [2] detekt/detekt#2152 (comment) Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch-si.com>
Restore the extension with a deprecation warning. See #2152
Restore the extension with a deprecation warning. See detekt#2152
Restore the extension with a deprecation warning. See detekt#2152
Expected Behavior
I have a project using detekt
1.2.0
:https://github.com/jcornaz/kwik/tree/3ba15e2fd54228ae5214f45b39a5977a1af14b7e
I would like to update detekt to version
1.2.1
. Since it is a patch I expect the update to be possible without any failure.Observed Behavior
If I update detekt version to
1.2.1
the build breaks with the following message:Steps to Reproduce
Setup working version:
Then in line 15 of
build.gradle.kts
replace1.2.0
by1.2.1
.Finally, observe the problem:
Context
I want to update detekt from version
1.2.0
to1.2.1
.Your Environment
The text was updated successfully, but these errors were encountered: