diff options
author | Margarita Bobova <32216159+woainikk@users.noreply.github.com> | 2023-06-23 15:03:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 15:03:38 +0200 |
commit | 39918cb2382b5e069f25d70fbc0a2665074be56c (patch) | |
tree | 9a028b6956ddd1a5b8bb890904c63b261601000c /benchmark | |
parent | caa194b78353c1b2301b6a2f96743fd761bd0d67 (diff) | |
download | kotlinx.serialization-39918cb2382b5e069f25d70fbc0a2665074be56c.tar.gz |
Update user projects config: adapt build script to new TeamCity variables (#2342)
Co-authored-by: Leonid Startsev <sandwwraith@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/build.gradle | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmark/build.gradle b/benchmark/build.gradle index 04dde008..751ad78c 100644 --- a/benchmark/build.gradle +++ b/benchmark/build.gradle @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + /* * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ @@ -25,6 +27,18 @@ jmhJar { destinationDirectory = file("$rootDir") } +// to include benchmark-module jmh source set compilation during build to verify that it is also compiled succesfully +assemble.dependsOn jmhClasses + +tasks.withType(KotlinCompile).configureEach { + kotlinOptions { + if (rootProject.ext.kotlin_lv_override != null) { + languageVersion = rootProject.ext.kotlin_lv_override + freeCompilerArgs += "-Xsuppress-version-warnings" + } + } +} + dependencies { implementation 'org.openjdk.jmh:jmh-core:1.35' implementation 'com.google.guava:guava:31.1-jre' |