diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-01-30 00:00:19 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-01-30 00:00:19 +0100 |
commit | 0ca508d3541899c21b249f7fdad869069c60dcb5 (patch) | |
tree | c6cd9dfca13ffccd8dd01bb34e05c43ea569d77c /build.gradle | |
parent | 55b221416bb2975b9a7adae71143bb0d926c57b3 (diff) | |
download | kvision-0ca508d3541899c21b249f7fdad869069c60dcb5.tar.gz kvision-0ca508d3541899c21b249f7fdad869069c60dcb5.tar.bz2 kvision-0ca508d3541899c21b249f7fdad869069c60dcb5.zip |
Fix for kdoc generation with dokka.
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/build.gradle b/build.gradle index f09d550f..78072918 100644 --- a/build.gradle +++ b/build.gradle @@ -91,10 +91,10 @@ configure(allprojects - project(':kvision-modules') - project(":kvision-modules: if (!project.gradle.startParameter.taskNames.contains("dokka")) { apply plugin: 'kotlin-platform-js' + apply plugin: 'org.jetbrains.kotlin.frontend' } else { apply plugin: 'kotlin' } -apply plugin: 'org.jetbrains.kotlin.frontend' apply plugin: 'org.jetbrains.dokka' apply plugin: 'kotlinx-serialization' @@ -120,35 +120,37 @@ dependencies { compile "pl.treksoft:kotlin-observable-js:0.0.4" } -kotlinFrontend { - npm { - dependency("css-loader", "2.0.1") - dependency("style-loader", "0.23.1") - dependency("less", "3.9.0") - dependency("less-loader", "4.1.0") - dependency("imports-loader", "0.8.0") - dependency("uglifyjs-webpack-plugin", "2.0.1") - dependency("file-loader", "2.0.0") - dependency("url-loader", "1.1.2") - dependency("jquery", "3.2.1") - dependency("fecha", "2.3.2") - dependency("snabbdom", "0.7.3") - dependency("snabbdom-virtualize", "0.7.0") - dependency("jquery-resizable-dom", "0.32.0") - dependency("element-resize-event", "3.0.3") - dependency("navigo", "7.0.0") - devDependency("karma", "3.1.4") - devDependency("qunit", "2.8.0") - } +if (!project.gradle.startParameter.taskNames.contains("dokka")) { + kotlinFrontend { + npm { + dependency("css-loader", "2.0.1") + dependency("style-loader", "0.23.1") + dependency("less", "3.9.0") + dependency("less-loader", "4.1.0") + dependency("imports-loader", "0.8.0") + dependency("uglifyjs-webpack-plugin", "2.0.1") + dependency("file-loader", "2.0.0") + dependency("url-loader", "1.1.2") + dependency("jquery", "3.2.1") + dependency("fecha", "2.3.2") + dependency("snabbdom", "0.7.3") + dependency("snabbdom-virtualize", "0.7.0") + dependency("jquery-resizable-dom", "0.32.0") + dependency("element-resize-event", "3.0.3") + dependency("navigo", "7.0.0") + devDependency("karma", "3.1.4") + devDependency("qunit", "2.8.0") + } - webpackBundle { - bundleName = "main" - contentPath = file('src/main/web') - mode = production ? "production" : "development" - } + webpackBundle { + bundleName = "main" + contentPath = file('src/main/web') + mode = production ? "production" : "development" + } - define "PRODUCTION", production + define "PRODUCTION", production + } } dokka { |