Detekt CLI Type Resolution - How to get the classpath #6550
-
Hi, I'm working on a large Android project with many modules. I want to try and attach it to the application's build process and generate the classpath ahead of time, both to use for commits and for speeding up the CI pipe. Does anyone know how I can generate that ahead of time? Regardless of getting it ahead of time, I think the docs could be a bit more helpful on how to get the classpath, as it's not so clear. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The whole point of using Detekt Gradle Plugin is so you don't have to create the classpath manually. In a sense, it's like if you where to ask how you can use the To answer your questions I would do the following:
Also I don't think we should update the docs to suggest this |
Beta Was this translation helpful? Give feedback.
The whole point of using Detekt Gradle Plugin is so you don't have to create the classpath manually.
In a sense, it's like if you where to ask how you can use the
javac
command to compile theMainActivity.java
file, I don't believe that https://developer.android.com/ tells you how to do it.To answer your questions I would do the following:
detekt
repodetekt-gradle-plugin
to print the classpath on console. It should be a colon separated list of jars/folders.Also I don't think we should update the docs to suggest this