-
-
Notifications
You must be signed in to change notification settings - Fork 794
Include detekt-rules on CLI runtime classpath #3625
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3625 +/- ##
============================================
+ Coverage 77.56% 78.25% +0.68%
Complexity 2829 2829
============================================
Files 465 466 +1
Lines 8807 9136 +329
Branches 1720 1724 +4
============================================
+ Hits 6831 7149 +318
- Misses 1047 1059 +12
+ Partials 929 928 -1
Continue to review full report at Codecov.
|
That's a known issue. |
|
||
testImplementation(project(":detekt-test")) | ||
|
||
bundledRules(project(":detekt-rules")) | ||
} | ||
|
||
tasks.shadowJar { | ||
mergeServiceFiles() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you confirm that the shadowJar will include :detekt-rules
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not manually but it's just going back to the old config. Shadow task bundles everything in runtime classpath by default.
Removing detekt-rules from the CLI runtime classpath in #3611 caused some issues with Gradle's up-to-date & dependency checks and made the build behave strangely when running
detekt
tasks on the project (rule changes weren't being picked up when thedetekt
task ran).This fixes that problem.
I also seem to have to restart the Gradle daemon when making rule changes for that to be picked up on new
detekt
runs - I suspect the class loader cache but I don't know enough about it, or if this is a new issue or not.