From b3e3bb2783d8700a689cb75f194f70849ab877af Mon Sep 17 00:00:00 2001 From: vmishenev Date: Thu, 19 Oct 2023 19:28:40 +0300 Subject: [PATCH] Update the version of Analysis API and enable test --- gradle/libs.versions.toml | 2 +- .../test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ba848dc288d..968552a3ba9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -11,7 +11,7 @@ kotlinx-bcv = "0.12.1" ## Analysis kotlin-compiler = "1.9.10" -kotlin-compiler-k2 = "1.9.30-dev-3330" +kotlin-compiler-k2 = "2.0.0-dev-5387" # 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 diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt index f99d80823dc..ba8f73cf97e 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocIndexTest.kt @@ -70,7 +70,6 @@ internal class JavadocIndexTest : AbstractJavadocTemplateMapTest() { } } - @Tag("onlyDescriptors") // K2: does not have getters: getName, getOrdinal @Test fun `handles correct number of elements`() { //We are checking whether we will have an additional function for enum classes @@ -78,7 +77,6 @@ internal class JavadocIndexTest : AbstractJavadocTemplateMapTest() { AnnotationTarget.ANNOTATION_CLASS::class.java.methods.any { it.name == "describeConstable" } testIndexPages(commonTestQuery) { indexPages -> - // K2: does not have getters: getName, getOrdinal assertEquals("A-index: a, A\n" + "B-index: b\n" + "C-index: c, ClassA, ClassB, ClassC, ClassC.InnerClass, ClassCEnum, compareTo\n" +