diff --git a/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/AnalysisContext.kt b/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/AnalysisContext.kt index a5d3183806..82e18719b8 100644 --- a/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/AnalysisContext.kt +++ b/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/AnalysisContext.kt @@ -33,7 +33,6 @@ internal fun ProjectKotlinAnalysis( internal class KotlinAnalysis( private val sourceModules: SourceSetDependent, private val analysisSession: StandaloneAnalysisAPISession, - private val applicationDisposable: Disposable, private val projectDisposable: Disposable ) : Closeable { @@ -47,7 +46,6 @@ internal class KotlinAnalysis( get() = analysisSession.modulesWithFiles override fun close() { - Disposer.dispose(applicationDisposable) Disposer.dispose(projectDisposable) } } diff --git a/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/KotlinAnalysis.kt b/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/KotlinAnalysis.kt index 89f6aaca21..9e28996f2b 100644 --- a/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/KotlinAnalysis.kt +++ b/dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/KotlinAnalysis.kt @@ -63,14 +63,12 @@ internal fun getLanguageVersionSettings( internal fun createAnalysisSession( sourceSets: List, logger: DokkaLogger, - applicationDisposable: Disposable = Disposer.newDisposable("StandaloneAnalysisAPISession.application"), projectDisposable: Disposable = Disposer.newDisposable("StandaloneAnalysisAPISession.project"), isSampleProject: Boolean = false ): KotlinAnalysis { val sourcesModule = mutableMapOf() val analysisSession = buildStandaloneAnalysisAPISession( - applicationDisposable = applicationDisposable, projectDisposable = projectDisposable, withPsiDeclarationFromBinaryModuleProvider = false ) { @@ -135,7 +133,7 @@ internal fun createAnalysisSession( ?: Platform.common.toTargetPlatform() } } - return KotlinAnalysis(sourcesModule, analysisSession, applicationDisposable, projectDisposable) + return KotlinAnalysis(sourcesModule, analysisSession, projectDisposable) } private enum class State { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ebaeae22c1..66acc24d06 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,7 +15,7 @@ kotlinx-bcv = "0.13.2" ## Analysis kotlin-compiler = "1.9.22" -kotlin-compiler-k2 = "2.0.0-dev-8561" +kotlin-compiler-k2 = "2.0.0-dev-14242" # MUST match the version of the intellij platform used in the kotlin compiler, # otherwise this will lead to different versions of psi API and implementations