summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorMargarita Bobova <32216159+woainikk@users.noreply.github.com>2023-06-23 15:03:38 +0200
committerGitHub <noreply@github.com>2023-06-23 15:03:38 +0200
commit39918cb2382b5e069f25d70fbc0a2665074be56c (patch)
tree9a028b6956ddd1a5b8bb890904c63b261601000c /benchmark
parentcaa194b78353c1b2301b6a2f96743fd761bd0d67 (diff)
downloadkotlinx.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.gradle14
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'