diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2023-07-21 15:19:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 15:19:17 +0300 |
commit | f5393dd740eaf533fe9ff51003b175ef1c1418fe (patch) | |
tree | 1c81e3a76c338c6281abdb946ae835e1d8a15225 /runners/gradle-plugin/src/main/kotlin/org/jetbrains | |
parent | 99062cbf5e332b3883c502da612d97f83eee9bff (diff) | |
download | dokka-f5393dd740eaf533fe9ff51003b175ef1c1418fe.tar.gz dokka-f5393dd740eaf533fe9ff51003b175ef1c1418fe.tar.bz2 dokka-f5393dd740eaf533fe9ff51003b175ef1c1418fe.zip |
Update Kotlin to 1.9.0 (#3074)
* Update Kotlin Gradle Plugin to 1.9.0
* Update Android Gradle Plugin to 4.2.2
* Introduce convention plugin for Gradle runner
https://github.com/gradle/gradle/issues/8301
* Fix unit test `common, jvm and macos source sets with kotlin multiplatform`
* Update compiler to 1.9.0
* Update integration test
* Add empty target for WASM integration test to avoid single target project
See https://github.com/Kotlin/dokka/issues/3038
* Remove unused `plugins.shadow` from toml
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt index e05b2075..b534dcc4 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt @@ -55,8 +55,10 @@ private fun KotlinCompilation.classpathOf(project: Project): FileCollection { val shouldKeepBackwardsCompatibility = (kgpVersion != null && kgpVersion < KotlinGradlePluginVersion(1, 7, 0)) return if (shouldKeepBackwardsCompatibility) { - @Suppress("DEPRECATION_ERROR") - kotlinCompile.classpath // deprecated with error since 1.8.0, left for compatibility with < Kotlin 1.7 + // removed since 1.9.0, left for compatibility with < Kotlin 1.7 + val classpathGetter= kotlinCompile::class.members + .first { it.name == "getClasspath" } + classpathGetter.call(kotlinCompile) as FileCollection } else { kotlinCompile.libraries // introduced in 1.7.0 } |