blob: b4261e8114482fea83bd13d0facb1a3ef851b567 [file] [log] [blame]
Clara Fok93e18122024-04-23 10:28:10 -07001import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
Leonid Startsev21dea852021-05-18 18:36:19 +03003/*
4 * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
5 */
6
Roman Elizarov5459c102020-08-11 12:27:36 +03007apply plugin: 'kotlin'
8apply plugin: 'kotlinx-serialization'
9
Clara Fok93e18122024-04-23 10:28:10 -070010kotlin {
11 jvmToolchain(8)
12}
13
14tasks.withType(KotlinCompile).configureEach {
15 kotlinOptions {
16 if (rootProject.ext.kotlin_lv_override != null) {
17 languageVersion = rootProject.ext.kotlin_lv_override
18 freeCompilerArgs += "-Xsuppress-version-warnings"
19 }
20 }
21}
22
Roman Elizarov5459c102020-08-11 12:27:36 +030023dependencies {
24 testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
25 testImplementation "org.jetbrains.kotlinx:kotlinx-knit-test:$knit_version"
26 testImplementation project(":kotlinx-serialization-core")
Vsevolod Tolstopyatov0e4e0e72020-09-14 04:04:34 -070027 testImplementation project(":kotlinx-serialization-json")
Roman Elizarov5459c102020-08-11 12:27:36 +030028 testImplementation project(":kotlinx-serialization-cbor")
29 testImplementation project(":kotlinx-serialization-protobuf")
30 testImplementation project(":kotlinx-serialization-properties")
31}
32
33sourceSets.test {
34 java.srcDirs("example", "test")
35}