|
|
|
@ -20,9 +20,9 @@ import java.net.URI; |
|
|
|
|
|
|
|
|
|
|
|
import dev.adamko.dokkatoo.DokkatooExtension; |
|
|
|
import dev.adamko.dokkatoo.DokkatooExtension; |
|
|
|
import dev.adamko.dokkatoo.formats.DokkatooHtmlPlugin; |
|
|
|
import dev.adamko.dokkatoo.formats.DokkatooHtmlPlugin; |
|
|
|
import io.gitlab.arturbosch.detekt.Detekt; |
|
|
|
import dev.detekt.gradle.Detekt; |
|
|
|
import io.gitlab.arturbosch.detekt.DetektPlugin; |
|
|
|
import dev.detekt.gradle.extensions.DetektExtension; |
|
|
|
import io.gitlab.arturbosch.detekt.extensions.DetektExtension; |
|
|
|
import dev.detekt.gradle.plugin.DetektPlugin; |
|
|
|
import org.gradle.api.Project; |
|
|
|
import org.gradle.api.Project; |
|
|
|
import org.gradle.api.tasks.SourceSet; |
|
|
|
import org.gradle.api.tasks.SourceSet; |
|
|
|
import org.gradle.api.tasks.SourceSetContainer; |
|
|
|
import org.gradle.api.tasks.SourceSetContainer; |
|
|
|
@ -103,7 +103,9 @@ class KotlinConventions { |
|
|
|
project.getPlugins().apply(DetektPlugin.class); |
|
|
|
project.getPlugins().apply(DetektPlugin.class); |
|
|
|
DetektExtension detekt = project.getExtensions().getByType(DetektExtension.class); |
|
|
|
DetektExtension detekt = project.getExtensions().getByType(DetektExtension.class); |
|
|
|
detekt.getConfig().setFrom(project.getRootProject().file("config/detekt/config.yml")); |
|
|
|
detekt.getConfig().setFrom(project.getRootProject().file("config/detekt/config.yml")); |
|
|
|
project.getTasks().withType(Detekt.class).configureEach((task) -> task.setJvmTarget(JVM_TARGET.getTarget())); |
|
|
|
project.getTasks() |
|
|
|
|
|
|
|
.withType(Detekt.class) |
|
|
|
|
|
|
|
.configureEach((task) -> task.getJvmTarget().set(JVM_TARGET.getTarget())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|