Humpie

build.gradle.kts

Feb 1st, 2020
385
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. plugins {
  2.     kotlin("js") version "1.3.70-eap-42"
  3.     kotlin("kapt") version "1.3.70-eap-42"
  4.     kotlin("plugin.serialization") version "1.3.70-eap-42"
  5. }
  6.  
  7. apply {
  8.     plugin("kotlin-dce-js")
  9. }
  10.  
  11. group = "org.example"
  12. version = "1.0-SNAPSHOT"
  13.  
  14. repositories {
  15.     maven(url = "https://dl.bintray.com/kotlin/kotlin-eap")
  16.     mavenCentral()
  17.     jcenter()
  18.     maven(url = "https://dl.bintray.com/kotlin/kotlinx")
  19.     maven(url = "https://kotlin.bintray.com/js-externals")
  20.     maven(url = "https://kotlin.bintray.com/kotlin-js-wrappers")
  21.     maven(url = "https://jitpack.io")
  22.     maven(url = "https://dl.bintray.com/korlibs/korlibs")
  23.     maven(url = "https://dl.bintray.com/soywiz/soywiz")
  24. }
  25.  
  26. kotlin {
  27.     target {
  28.         useCommonJs()
  29.         nodejs()
  30.         browser {
  31.             compilations.all {
  32.                 kotlinOptions {
  33.                     metaInfo = true
  34.                     sourceMap = true
  35.                     sourceMapEmbedSources = "always"
  36.                     moduleKind = "commonjs"
  37.                     main = "call"
  38.                 }
  39.             }
  40.         }
  41.     }
  42.    
  43.     sourceSets {
  44.         main {
  45.             dependencies {
  46.                 implementation(npm("webpack", "4.41.2"))
  47.                 implementation(npm("webpack-cli", "3.3.10"))
  48.                 implementation(npm("webpack-dev-server", "3.9.0"))
  49.  
  50.                 implementation("org.jetbrains:annotations:16.0.2")
  51.                 implementation(kotlin("stdlib-js"))
  52.                 implementation("org.jetbrains.kotlinx:kotlinx-html-js:0.6.12")
  53.                 implementation("org.jetbrains:kotlin-react:16.9.0-pre.89-kotlin-1.3.60")
  54.                 implementation("org.jetbrains:kotlin-react-dom:16.9.0-pre.89-kotlin-1.3.60")
  55.  
  56.                 implementation("io.data2viz:d2v-data2viz-js:0.8.0-RC5")
  57.  
  58.                 implementation("org.jetbrains:kotlin-extensions:1.0.1-pre.89-kotlin-1.3.60")
  59.                 implementation("org.jetbrains:kotlin-css:1.0.0-pre.89-kotlin-1.3.60")
  60.                 implementation("org.jetbrains:kotlin-css-js:1.0.0-pre.89-kotlin-1.3.60")
  61.                 implementation("org.jetbrains:kotlin-styled:1.0.0-pre.89-kotlin-1.3.60")
  62.                 implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.11.1")
  63.  
  64.                 implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.1")
  65.                 implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-js:1.3.1")
  66.  
  67.                 implementation(npm("react", "16.12.0"))
  68.                 implementation(npm("react-dom", "16.12.0"))
  69.                 implementation(npm("react-draggable"))
  70.                 implementation(npm("react-list"))
  71.  
  72.                 implementation(npm("inline-style-prefixer"))
  73.                 implementation(npm("core-js"))
  74.                 implementation(npm("@material-ui/core"))
  75.                 implementation(npm("@material-ui/icons"))
  76.  
  77.                 implementation(npm("styled-components"))
  78.                 implementation(npm("jquery"))
  79.             }
  80.         }
  81.     }
  82. }
RAW Paste Data