Skip to content

Commit

Permalink
Fixed the Kotlin Version Bug (#89)
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Hermüller <[email protected]>
  • Loading branch information
Hermueller authored Sep 28, 2022
1 parent df97a45 commit 7fe9f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class KotlinConfigurePlugin : Plugin<Project> {
.map { project.dependencies.platform("org.jetbrains.kotlin:kotlin-bom:$it") }
)
this.implementation(kotlinConfigureExtension.kotlinVersion
.map { "org.jetbrains.kotlin:kotlin-stdlib-jdk8" }
.map { "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$it" }
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class KotlinConfigurePluginTest {
.containsEntry(Name.IMPLEMENTATION_TITLE, fixtureName)
.containsEntry(Name.IMPLEMENTATION_VERSION, "1.0.0")

assertThat(result.normalizedOutput).contains("--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:${options.kotlinVersion}")
assertThat(result.normalizedOutput).contains("--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:${options.kotlinVersion}\n")

// validate that Kotlin uses the jdk configured by the java toolchain
val jdkHome = result.extractJavaToolchainJdkHome()
Expand Down

0 comments on commit 7fe9f0e

Please sign in to comment.