summaryrefslogtreecommitdiff
path: root/build.gradle.kts
blob: af286b54a131eb8f92fb4022a2648ca5ec777710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
plugins {
    val kotlinVersion = "1.3.50"
    kotlin("js") version kotlinVersion apply false
    kotlin("jvm") version kotlinVersion apply false
    kotlin("multiplatform") version kotlinVersion apply false
    kotlin("plugin.spring") version kotlinVersion apply false
    id("org.jlleitschuh.gradle.ktlint") version "7.1.0" apply false
}

subprojects {
    repositories {
        jcenter()
        // keep this as long as the Gradle plugin is used in EAP version
        maven(url = "https://dl.bintray.com/kotlin/kotlin-eap")
    }

    tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
        kotlinOptions.jvmTarget = "1.8"
    }

    tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> {
        kotlinOptions.freeCompilerArgs = listOf("-Xuse-experimental=kotlin.Experimental")
    }
}
bgstack15