Skip to content

Commit

Permalink
Corrected exception assertion with the latest Kotlin 1.6.20
Browse files Browse the repository at this point in the history
  • Loading branch information
chao2zhang committed Apr 24, 2022
1 parent 8d8f83c commit c5ddccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repositories {
plugins {
id("org.jetbrains.intellij").version("1.5.3")
id("com.github.ben-manes.versions").version("0.42.0")
kotlin("jvm").version(embeddedKotlinVersion)
kotlin("jvm").version("1.6.20")
id("com.github.breadmoirai.github-release").version("2.2.12")
}

Expand Down Expand Up @@ -46,7 +46,7 @@ java {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = jvmVersion.toString()
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
}
}

Expand All @@ -68,7 +68,7 @@ tasks.publishPlugin {

intellij {
pluginName.set("Detekt IntelliJ Plugin")
version.set("2021.3.3")
version.set("2022.1")
updateSinceUntilBuild.set(false)
plugins.set(listOf("IntelliLang", "Kotlin"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class ConfiguredServiceTest : DetektPluginTestCase() {
autoCorrect = false
)
}
.isInstanceOf(NoSuchMethodError::class.java)
.isInstanceOf(ClassCastException::class.java)
.hasMessageContaining(
"org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment${"$"}Companion.createForProduction"
"class org.jetbrains.kotlin.idea.KotlinFileType cannot be cast"
)
}

Expand Down

0 comments on commit c5ddccf

Please sign in to comment.