Skip to content

Commit

Permalink
configure detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed May 8, 2019
1 parent 4693505 commit 0811d9e
Show file tree
Hide file tree
Showing 53 changed files with 917 additions and 274 deletions.
23 changes: 20 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

buildscript {
ext {
kotlinVersion = "1.3.10"
detektVersion = "1.0.0-RC14"
}
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.10"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${detektVersion}"
}
}

Expand All @@ -18,15 +24,17 @@ subprojects { project ->
apply plugin: "kotlin"
apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"
apply plugin: "io.gitlab.arturbosch.detekt"

repositories {
jcenter()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlin:kotlin-reflect"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}"
compile "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"
testCompile "junit:junit:4.12"
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:${detektVersion}"
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
Expand All @@ -43,6 +51,15 @@ subprojects { project ->
classifier = "javadoc"
}

detekt {
toolVersion = detektVersion
config = files("${project.rootDir}/detekt-config.yml")
reports {
xml.enabled = false
html.enabled = false
}
}

publishing {
publications {
bintray(MavenPublication) {
Expand Down
Loading

0 comments on commit 0811d9e

Please sign in to comment.