Skip to content

Commit

Permalink
Execute compiler plugin tests on language version 1.9 due to K2 incom…
Browse files Browse the repository at this point in the history
…patibility
  • Loading branch information
3flex committed Nov 23, 2023
1 parent b1a7477 commit f575b9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions detekt-compiler-plugin/build.gradle.kts
Expand Up @@ -94,6 +94,8 @@ val testPluginKotlinc by tasks.registering(Task::class) {

args = listOf(
sourceFile.path,
"-language-version",
"1.9",
"-Xplugin=${tasks.shadowJar.get().archiveFile.get().asFile.absolutePath}",
"-P",
)
Expand Down
Expand Up @@ -15,6 +15,7 @@ object CompilerTestUtils {
return KotlinCompilation().apply {
sources = sourceFiles
compilerPluginRegistrars = listOf(DetektCompilerPluginRegistrar())
languageVersion = "1.9"
}.compile()
}
}

0 comments on commit f575b9e

Please sign in to comment.