Skip to content

Commit

Permalink
Benchmarks: Use Kotlin stdlib version specified in gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmat192 committed Jun 18, 2019
1 parent 864d456 commit 31d9874
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ internal val Project.kotlinVersion: String
internal val Project.konanVersion: String
get() = property("konanVersion") as String

internal val Project.kotlinStdlibVersion: String
get() = property("kotlinStdlibVersion") as String

internal val Project.kotlinStdlibRepo: String
get() = property("kotlinStdlibRepo") as String

internal val Project.nativeJson: String
get() = project.property("nativeJson") as String

Expand Down Expand Up @@ -86,11 +92,15 @@ open class BenchmarkingPlugin: Plugin<Project> {
private fun Project.configureSourceSets(kotlinVersion: String) {
with(kotlin.sourceSets) {
commonMain.dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinStdlibVersion")
}

jvmMain.dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinStdlibVersion")
}

repositories.maven {
it.setUrl(kotlinStdlibRepo)
}

// Add sources specified by a user in the benchmark DSL.
Expand Down

0 comments on commit 31d9874

Please sign in to comment.