Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 1 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 2 | |
Leonid Startsev | 21dea85 | 2021-05-18 18:36:19 +0300 | [diff] [blame] | 3 | /* |
| 4 | * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 5 | */ |
| 6 | |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 7 | apply plugin: 'kotlin' |
| 8 | apply plugin: 'kotlinx-serialization' |
| 9 | |
Clara Fok | 93e1812 | 2024-04-23 10:28:10 -0700 | [diff] [blame] | 10 | kotlin { |
| 11 | jvmToolchain(8) |
| 12 | } |
| 13 | |
| 14 | tasks.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 Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 23 | dependencies { |
| 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 Tolstopyatov | 0e4e0e7 | 2020-09-14 04:04:34 -0700 | [diff] [blame] | 27 | testImplementation project(":kotlinx-serialization-json") |
Roman Elizarov | 5459c10 | 2020-08-11 12:27:36 +0300 | [diff] [blame] | 28 | testImplementation project(":kotlinx-serialization-cbor") |
| 29 | testImplementation project(":kotlinx-serialization-protobuf") |
| 30 | testImplementation project(":kotlinx-serialization-properties") |
| 31 | } |
| 32 | |
| 33 | sourceSets.test { |
| 34 | java.srcDirs("example", "test") |
| 35 | } |