but there's no RC12 which is mentioned here <https...
# detekt
j
but there's no RC12 which is mentioned here https://plugins.gradle.org/plugin/io.gitlab.arturbosch.detekt
m
As described in https://plugins.gradle.org/plugin/io.gitlab.arturbosch.detekt you'll have to add the URL for the Gradle Plugin portal
j
ok I think I got it now, had to also fix version syntax to use - instead .
m
Yes, the newer versions rely on the
-
j
now I get
Copy code
> Failed to apply plugin [id 'io.gitlab.arturbosch.detekt']
   > Could not create an instance of type io.gitlab.arturbosch.detekt.extensions.DetektExtension_Decorated.
      > org.gradle.api.file.ProjectLayout.configurableFiles([Ljava/lang/Object;)Lorg/gradle/api/file/ConfigurableFileCollection;
using just
Copy code
detekt {
    input = "src/main/kotlin"
    config = "detekt.yml"
}
m
Do you use Groovy or Kotlin for the
build.gradle
file?
j
Groovy
ok so you need Gradle 4.9
Can't make this work though
Copy code
dependencies {
    detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:[version]"
}
Could not find method detektPlug() for arguments [io.gitlab.arturbosch.detektdetekt formatting1.0.0.RC12] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
ok i'ts working now