Skip to content

Commit

Permalink
Prep for Kotlin 2.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Jun 22, 2024
1 parent 8d5e880 commit 3620f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ gjf = "1.17.0"
incap = "1.0.0"
jdk = "21"
jvmTarget = "11"
kotlin = "2.0.0"
kotlin = "2.0.20-Beta1"
kotlinCompileTesting = "0.5.0"
kotlinpoet = "1.17.0"
ksp = "2.0.0-1.0.22"
ksp = "2.0.20-Beta1-1.0.22"
ktfmt = "0.51"
moshi = "1.15.1"
okhttp = "4.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package dev.zacsweers.moshix.ir.compiler

import com.google.auto.service.AutoService
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
import org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar
import org.jetbrains.kotlin.config.CommonConfigurationKeys
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.name.ClassId

Expand All @@ -34,7 +34,7 @@ public class MoshiComponentRegistrar : CompilerPluginRegistrar() {
val enableSealed = configuration[KEY_ENABLE_SEALED] ?: false

val messageCollector =
configuration.get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, MessageCollector.NONE)
configuration.get(CommonConfigurationKeys.MESSAGE_COLLECTOR_KEY, MessageCollector.NONE)
val fqGeneratedAnnotation = configuration[KEY_GENERATED_ANNOTATION]?.let(ClassId::fromString)

IrGenerationExtension.registerExtension(
Expand Down

0 comments on commit 3620f62

Please sign in to comment.