Guest User

Untitled

a guest
May 15th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.69 KB | None | 0 0
  1. plugins {
  2.     id 'java'
  3.     id 'org.jetbrains.intellij' version '0.4.21'
  4.     id 'org.jetbrains.kotlin.multiplatform' version '1.3.72'
  5.     id 'war'
  6.     id 'org.jetbrains.kotlin.jvm' version '1.3.72'
  7.     id 'org.jetbrains.kotlin.js' version '1.3.72'
  8. }
  9.  
  10. group 'org.example'
  11. version '1.0-SNAPSHOT'
  12.  
  13. sourceCompatibility = 1.8
  14.  
  15. repositories {
  16.     jcenter()
  17.     maven { url "https://dl.bintray.com/kotlin/ktor" }
  18.     mavenCentral()
  19. }
  20.  
  21. dependencies {
  22.     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  23.     implementation "org.jetbrains.kotlin:kotlin-stdlib-js"
  24.     testCompile group: 'junit', name: 'junit', version: '4.11'
  25.     testCompile group: 'junit', name: 'junit', version: '4.12'
  26.     testImplementation "org.jetbrains.kotlin:kotlin-test-js"
  27. }
  28.  
  29. // See https://github.com/JetBrains/gradle-intellij-plugin/
  30. intellij {
  31.     version '2019.3.2'
  32. }
  33. compileKotlin {
  34.     kotlinOptions.jvmTarget = "1.8"
  35. }
  36. compileTestKotlin {
  37.     kotlinOptions.jvmTarget = "1.8"
  38. }
  39. kotlin {
  40.     /* Targets configuration omitted.
  41.     *  To find out how to configure the targets, please follow the link:
  42.     *  https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-targets */
  43.  
  44.     sourceSets {
  45.         commonMain {
  46.             dependencies {
  47.                 implementation kotlin('stdlib-common')
  48.             }
  49.         }
  50.         commonTest {
  51.             dependencies {
  52.                 implementation kotlin('test-common')
  53.                 implementation kotlin('test-annotations-common')
  54.             }
  55.         }
  56.     }
  57. }
  58. kotlin.target.browser { }
  59. patchPluginXml {
  60.     changeNotes """
  61.      Add change notes here.<br>
  62.      <em>most HTML tags may be used</em>"""
  63. }
Add Comment
Please, Sign In to add comment