aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
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"