Skip to content

Commit

Permalink
Gradle: Also run detekt on the root build file and buildSrc
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch-si.com>
  • Loading branch information
sschuberth committed Sep 20, 2019
1 parent 73ed24c commit 4e2a5f5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ val kotlintestVersion: String by project
plugins {
kotlin("jvm") apply false

id("io.gitlab.arturbosch.detekt") apply false
id("io.gitlab.arturbosch.detekt")
id("org.jetbrains.dokka") apply false

id("com.github.ben-manes.versions")
Expand Down Expand Up @@ -70,6 +70,21 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
}
}

repositories {
jcenter()
}

detekt {
// Align the detekt core and plugin versions.
toolVersion = detektPluginVersion

// Only configure differences to the default.
buildUponDefaultConfig = true
config = files(".detekt.yml")

input = files("buildSrc", "build.gradle.kts")
}

subprojects {
buildscript {
repositories {
Expand Down

0 comments on commit 4e2a5f5

Please sign in to comment.