Files
compose-multiplatform/benchmarks/build.gradle.kts
Igor Demin dbd0a21949 Modify replace.sh for replacing Compose version (#1511)
Remove:
```
__LATEST_COMPOSE_RELEASE_VERSION__
__KOTLIN_COMPOSE_VERSION__
System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION")
```

They pollute templates/examples.

Now, all paths where we need to change the version are hardcoded in the script.

Usage:
```
./replace.sh 1.0.0-rc6
```

This script is planned to run on CI

In the future I will add support for changing Kotlin version
2021-12-08 10:32:18 +03:00

41 lines
914 B
Kotlin

import org.jetbrains.compose.compose
import kotlinx.benchmark.gradle.*
import org.jetbrains.kotlin.allopen.gradle.*
plugins {
kotlin("jvm") version "1.4.20"
id("org.jetbrains.compose") version "0.2.0-build132"
kotlin("plugin.allopen") version "1.4.20"
id("kotlinx.benchmark") version "0.3.0"
}
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
implementation(compose.desktop.currentOs)
implementation("org.jetbrains.kotlinx:kotlinx.benchmark.runtime:0.3.0")
}
configure<AllOpenExtension> {
annotation("org.openjdk.jmh.annotations.State")
}
benchmark {
configurations {
named("main") {
iterationTime = 5
iterationTimeUnit = "sec"
}
}
targets {
register("main") {
this as JvmBenchmarkTarget
jmhVersion = "1.21"
}
}
}