aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-08 13:29:16 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-08 13:29:16 +0200
commit85b48891c61c604c952c8739b50bdae2998c44a7 (patch)
tree7281243392774153dfb7b700fb55bb9b169c8a4e /build.gradle
parent2072d1b9c1b9d4f515cc1759b12ca19db7106d82 (diff)
downloadkvision-85b48891c61c604c952c8739b50bdae2998c44a7.tar.gz
kvision-85b48891c61c604c952c8739b50bdae2998c44a7.tar.bz2
kvision-85b48891c61c604c952c8739b50bdae2998c44a7.zip
Added code analyzing with Detekt
Refactoring
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index c9cf1563..1450ba1b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,11 +4,13 @@ buildscript {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
+ maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.20"
+ classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0.RC4-2"
}
}
@@ -17,6 +19,7 @@ version = '0.0.1-SNAPSHOT'
apply plugin: 'kotlin2js'
apply plugin: 'org.jetbrains.kotlin.frontend'
+apply plugin: "io.gitlab.arturbosch.detekt"
repositories {
jcenter()
@@ -61,6 +64,15 @@ kotlinFrontend {
}
+detekt {
+ version = "1.0.0.RC4-2"
+ profile("main") {
+ input = "$projectDir/src/main/kotlin"
+ config = "$projectDir/detekt.yml"
+ filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
+ }
+}
+
compileKotlin2Js {
kotlinOptions.metaInfo = true
kotlinOptions.outputFile = "$project.buildDir.path/js/${project.name}.js"