build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. plugins {
  2. id 'org.jetbrains.kotlin.js' version '1.5.20'
  3. id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.20'
  4. }
  5. group 'me.mementomorri'
  6. version '1.0-SNAPSHOT'
  7. def kotlinVersion = "1.5.20"
  8. def reactVersion = "17.0.2"
  9. def suffix = "-pre.213-kotlin-"
  10. def ktor_version = "1.6.0"
  11. def kotlinReactVersion = reactVersion + suffix + kotlinVersion
  12. def kotlinReactRouterVersion = "5.2.0" + suffix + kotlinVersion
  13. repositories {
  14. mavenCentral()
  15. jcenter()
  16. maven { url "https://kotlin.bintray.com/kotlin-js-wrappers" }
  17. maven { url "https://kotlin.bintray.com/kotlinx" }
  18. }
  19. dependencies {
  20. implementation "org.jetbrains.kotlin:kotlin-stdlib-js"
  21. implementation "org.jetbrains.kotlin-wrappers:kotlin-react:$kotlinReactVersion"
  22. implementation "org.jetbrains.kotlin-wrappers:kotlin-react-dom:$kotlinReactVersion"
  23. implementation "org.jetbrains.kotlin-wrappers:kotlin-react-router-dom:$kotlinReactRouterVersion"
  24. implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1"
  25. implementation "io.ktor:ktor-client-js:$ktor_version"
  26. implementation "io.ktor:ktor-client-serialization:$ktor_version"
  27. implementation "io.ktor:ktor-client-core:$ktor_version"
  28. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
  29. testImplementation "org.jetbrains.kotlin:kotlin-test-js"
  30. }
  31. kotlin {
  32. target.browser {}
  33. sourceSets["main"].dependencies {
  34. implementation(npm("react", "17.0.2"))
  35. implementation(npm("react-dom", "17.0.2"))
  36. implementation(npm("react-router-dom", "5.2.0"))
  37. }
  38. }