Skip to content

Commit 5738e0b

Browse files
authored
Update Gradle Properties types to be non-nullable (#4136)
Change languageVersion and apiVersion `Property<>`s to use non-nullable types, to be compatible with Gradle 9. https://docs.gradle.org/9.0.0-milestone-9/userguide/upgrading_version_8.html#kotlin_dsl_now_uses_the_kotlin_language_version_2_1 #4096
1 parent c9eeee6 commit 5738e0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dokka-runners/dokka-gradle-plugin/src/main/kotlin/engine/parameters/DokkaSourceSetSpec.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,22 +326,24 @@ constructor(
326326
* used for setting up analysis and [`@sample`](https://kotlinlang.org/docs/kotlin-doc.html#sample-identifier)
327327
* environment.
328328
*
329+
* This is an optional property.
329330
* By default, the latest language version available to Dokka's embedded compiler will be used.
330331
*/
331332
@get:Input
332333
@get:Optional
333-
abstract val languageVersion: Property<String?>
334+
abstract val languageVersion: Property<String>
334335

335336
/**
336337
* [Kotlin API version](https://kotlinlang.org/docs/compatibility-modes.html)
337338
* used for setting up analysis and [`@sample`](https://kotlinlang.org/docs/kotlin-doc.html#sample-identifier)
338339
* environment.
339340
*
341+
* This is an optional property.
340342
* By default, it will be deduced from [languageVersion].
341343
*/
342344
@get:Input
343345
@get:Optional
344-
abstract val apiVersion: Property<String?>
346+
abstract val apiVersion: Property<String>
345347

346348
/**
347349
* JDK version to use when generating external documentation links for Java types.

0 commit comments

Comments
 (0)