```dependencies { detekt("io.gitlab.arturbosch...
# detekt
j
Copy code
dependencies {
    detekt("io.gitlab.arturbosch.detekt:detekt-formatting:${detektVersion}")
m
Isn't that also missing a detekt section?
j
No?
m
Ah no. It seems correct, sorry
Is the dependency on jcenter?
Looks like it. Is jcenter having issues?
j
m
Hm.. maybe the maven Central mirror is not working correctly?
Do you have jcenter in your configuration?
j
yes I have jcenter
m
Can you post the full error?
j
or maybe not..
I had jcenter only for buildscripts
now I have
Copy code
> Task :detekt FAILED
Error: Could not find or load main class io.gitlab.arturbosch.detekt.cli.Main

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':detekt'.
> Process 'command 'C:\java\jdk1.8.0_131\bin\java.exe'' finished with non-zero exit value 1
🙂
m
What is your detekt config?
j
Copy code
detekt {
    version = "${detektVersion}"
    // See <https://arturbosch.github.io/detekt/groovydsl.html#options-for-detekt-configuration-closure>
    input = files("src/main/kotlin","src/test/kotlin")
    config = files("detekt.yml")
    filters = ".*/resources/.*,.*/tmp/.*"
}
p
Well i think there should be an exception as well there
Most probably thhough it is the multiple input files specified
j
I did run --stacktrace but get only trace in Gradle code..
input = files("src/main/kotlin") does not work either
If I remove
Copy code
dependencies {
    detekt("io.gitlab.arturbosch.detekt:detekt-formatting:${detektVersion}")
detekt runs fine and reports issues
a
I noticed the same issue. Please add the detekt-cli together with detekt-formatting for now. It seems like the cli dependency is removed or something.