Skip to content

Commit

Permalink
Update ksp to v2.0.21-1.0.27 (#294)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
  • Loading branch information
renovate[bot] and ZacSweers authored Nov 11, 2024
1 parent 85fb01c commit c22dc19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
idea = "242.8057" # (see https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html)
kotlin = "2.0.20"
kotlin = "2.0.21"
kotlinpoet = "2.0.0"
ksp = "2.0.20-1.0.25"
ksp = "2.0.21-1.0.27"

[plugins]
buildconfig = { id = "com.github.gmazzo.buildconfig", version = "3.1.0" }
Expand Down
7 changes: 4 additions & 3 deletions ksp/src/main/kotlin/com/tschuchort/compiletesting/Ksp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import com.google.devtools.ksp.KspOptions
import com.google.devtools.ksp.processing.KSPLogger
import com.google.devtools.ksp.processing.SymbolProcessorProvider
import com.google.devtools.ksp.processing.impl.MessageCollectorBasedKSPLogger
import java.io.File
import java.util.EnumSet
import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
import org.jetbrains.kotlin.cli.jvm.config.JavaSourceRoot
import org.jetbrains.kotlin.com.intellij.core.CoreApplicationEnvironment
import org.jetbrains.kotlin.com.intellij.mock.MockProject
import org.jetbrains.kotlin.com.intellij.openapi.Disposable
import org.jetbrains.kotlin.com.intellij.psi.PsiTreeChangeAdapter
import org.jetbrains.kotlin.com.intellij.psi.PsiTreeChangeListener
import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar
Expand All @@ -21,6 +20,8 @@ import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.config.languageVersionSettings
import org.jetbrains.kotlin.resolve.jvm.extensions.AnalysisHandlerExtension
import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstanceOrNull
import java.io.File
import java.util.EnumSet

/** Configure the given KSP tool for this compilation. */
@OptIn(ExperimentalCompilerApi::class)
Expand Down Expand Up @@ -164,7 +165,7 @@ private class KspTestExtension(
) : AbstractKotlinSymbolProcessingExtension(options = options, logger = logger, testMode = false) {
private val loadedProviders = processorProviders

override fun loadProviders() = loadedProviders
override fun loadProviders(rootDisposable: Disposable): List<SymbolProcessorProvider> = loadedProviders
}

/** Registers the [KspTestExtension] to load the given list of processors. */
Expand Down

0 comments on commit c22dc19

Please sign in to comment.