88e31cd1ac
See: https://docs.gradle.org/current/userguide/sharing_build_logic_between_subprojects.html#sec:convention_plugins
30 lines
649 B
Plaintext
30 lines
649 B
Plaintext
plugins {
|
|
id("org.jetbrains.kotlinx.benchmark")
|
|
id("org.jetbrains.kotlin.plugin.allopen")
|
|
id("kotlin-conventions")
|
|
}
|
|
|
|
allOpen {
|
|
annotation("org.openjdk.jmh.annotations.State")
|
|
annotation("org.openjdk.jmh.annotations.BenchmarkMode")
|
|
}
|
|
|
|
benchmark {
|
|
targets {
|
|
register("jvm")
|
|
register("js")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(project(":kotlin-result-coroutines"))
|
|
implementation(libs.kotlin.benchmark.runtime)
|
|
implementation(libs.kotlin.coroutines.core)
|
|
}
|
|
}
|
|
}
|
|
}
|