-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
Point release for Kotlin 1.9.10 support #6428
Comments
The Current Behavior section reads:
Is that |
The current detekt 1.23.1 only supports Kotlin 1.9.0. Sorry i have corrected the bug. I also found out Kotlin 1.9.10 only supports JDK 20. So the importance of this issue is lower for me at least. Kotlin 1.9.20 should support JDK 21 so once that is released it would be more important. I am more interested in a version of Kotlin that supports JDK 21. |
Detekt supports any version of detekt. You can have problems with detekt if your configuration of gradle overwrites the dependencies of detekt. But there is not any good reason to do that. So, in general, you should check your gradle configuration. |
Sorry maybe i didnt provide enough information in the original bug.
This is how i am applying detekt as part of a gradle convention plugin in buildSrc
This is directly related to issue #6198, but that issue is addressing the root cause, this issue is only asking for a point release. |
Please see #6198 (comment) in the meantime. Snapshots are also available and are updated to 1.9.10. |
@credmond-git would you be able to provide a reproducer as @3flex suggested? We'll be doing a point release with 1.9.10 support in the immediate future anyway |
Also have the same problem. commented here #6198 (comment) |
Any news on the issue? |
* Update all non major dependencies * PI-1544 Downgrade Kotlin to 1.9.0 due to lack of detekt support See detekt/detekt#6428 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
I managed to reproduce, based on some real projects I work with at my job: https://github.com/gb-jairo/detekt6428 In this case, the problem is that:
Running any gradle command gives the following error:
|
I'm having the same problem, would be awesome to have a new detekt version with Kotlin 1.9.10. Right now because of this problem, we are thinking about removing detekt from our dependencies since we want to upgrade to Kotlin 1.9.10 |
@gb-jairo your issue is unrelated to the original issue. But in your case, there's no need to depend on detekt-cli in a custom ruleset, so remove that dependency from detekt-custom-rules. You also need to change @CaiqueCoelho you have the same issue as the original issue, or as gb-jairo? You gave the comment above a thumbs up so I'll assume that my comments your use case too. |
Hey @3flex thank you for your quick reply, my problem is related to the original problem.
The following workaround works, but we are afraid of the side effects this may have, the static analysis will run in one version and the code in another. Can you tell us if doing this would have any risks?
|
@CaiqueCoelho please add any comments/questions on that to the original issue: #6198 |
Done #6198 (comment) |
it was indeed bad configuration on the company's projects 🤦 |
Heads up that we published https://github.com/detekt/detekt/releases/tag/v1.23.2 with support for 1.9.10. Apologize for the delay. |
👋 hey any plans to support 1.9.20 now as well? :) It looks like the bump has already been merged, we just need a new release: #6572 |
I'll prepare a point release with support for 1.9.21 in the near future |
Expected Behavior
Can build with Kotlin 1.9.10
Current Behavior
1.23.1 only supports Kotlin 1.9.0
Context
Hello, would it be possible to get a point release with Kotlin 1.9.10 support? This is currently blocking our projects from upgrading to Kotlin 1.9.10.
Kotlin 1.9.10 has JDK 21 support and we plan on migrating our projects to JDK 21 once Gradle and detekt support it.I along with the community would be very appreciative if we could get a point release with minimal changes quickly, that will allow us to run our Kotlin 1.9.10 builds with detekt.
Thank you for your support with the last issue #6278 to release a build to support Kotlin 1.9.0
The text was updated successfully, but these errors were encountered: