aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-07 13:39:02 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-07 13:39:02 +0100
commite340e0605a33138418996ae1aaa4798f22f0d436 (patch)
tree927fa4a1b8d0e5d635db23de31e0744afce64dc4
parentc5f2ad36b49b75dcaa70271e88f101e99fef5f2a (diff)
downloadkvision-e340e0605a33138418996ae1aaa4798f22f0d436.tar.gz
kvision-e340e0605a33138418996ae1aaa4798f22f0d436.tar.bz2
kvision-e340e0605a33138418996ae1aaa4798f22f0d436.zip
Dependencies and testing framework updates.
-rw-r--r--build.gradle20
1 files changed, 15 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 12e41aea..bea03166 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,8 @@
buildscript {
ext.kotlin_version = '1.2.30'
- ext.dokka_version = '0.9.16-eap-3'
+ ext.dokka_version = '0.9.16'
+ ext.frontend_plugin_version = '0.0.29'
+ ext.detekt_version = '1.0.0.RC6-3'
ext.production = (findProperty('prod') ?: 'false') == 'true'
ext.npmdeps = new File("npm.dependencies").getText()
@@ -12,9 +14,9 @@ buildscript {
}
dependencies {
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.27"
- classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.0.0.RC6-2"
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
+ classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:${frontend_plugin_version}"
+ classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${detekt_version}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
}
}
@@ -77,7 +79,10 @@ kotlinFrontend {
dependency(name, version)
}
devDependency("karma")
+ devDependency("karma-chrome-launcher")
+ devDependency("karma-firefox-launcher")
devDependency("karma-webpack", "2.0.9")
+ devDependency("qunit-assert-html")
devDependency("webpack", "3.11.0")
devDependency("webpack-dev-server", "2.11.0")
}
@@ -87,6 +92,11 @@ kotlinFrontend {
contentPath = file('src/main/web')
}
+ karma {
+ plugins = [ "karma-chrome-launcher", "karma-firefox-launcher" ]
+// browsers = [ "Chrome", "Firefox" ]
+ }
+
define "PRODUCTION", production
}
@@ -110,7 +120,7 @@ task sourcesJar(type: Jar, dependsOn: classes) {
}
detekt {
- version = "1.0.0.RC6-2"
+ version = "${detekt_version}"
profile("main") {
input = "$projectDir/src/main/kotlin"
config = "$projectDir/detekt.yml"