diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2023-03-16 20:18:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 20:18:16 +0100 |
commit | 18d01bf269a88c0fba0ae860a1fda644d31a37c2 (patch) | |
tree | 013fb2bf6d7f4a77d4a7f4ff91a762ffb0bfe0a2 /build-logic/src/main/kotlin/org/jetbrains/internal | |
parent | 12e2a3c6b8bf1533148ddf29c77e73f5045754a6 (diff) | |
download | dokka-18d01bf269a88c0fba0ae860a1fda644d31a37c2.tar.gz dokka-18d01bf269a88c0fba0ae860a1fda644d31a37c2.tar.bz2 dokka-18d01bf269a88c0fba0ae860a1fda644d31a37c2.zip |
Fix test runtime Java versions (#2918)
Fixes #2917
Co-authored-by: Goooler <wangzongler@gmail.com>
Diffstat (limited to 'build-logic/src/main/kotlin/org/jetbrains/internal')
-rw-r--r-- | build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt b/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt new file mode 100644 index 00000000..78bbc568 --- /dev/null +++ b/build-logic/src/main/kotlin/org/jetbrains/internal/gradleKotlinDslAccessors.kt @@ -0,0 +1,27 @@ +@file:Suppress("PackageDirectoryMismatch") + +package org.gradle.kotlin.dsl // for convenience use a default package for gradle.kts scripts + +import org.gradle.api.Project +import org.jetbrains.DokkaBuildProperties + +/* + * Utility functions for accessing Gradle extensions that are created by convention plugins. + * + * (Gradle can't generate the nice DSL accessors for the project that defines them) + * + * These functions are not needed outside the convention plugins project and should be marked as + * `internal` + */ + +/** + * Retrieves the [dokkaBuild][org.jetbrains.DokkaBuildProperties] extension. + */ +internal val Project.dokkaBuild: DokkaBuildProperties + get() = extensions.getByType() + +/** + * Configures the [dokkaBuild][org.jetbrains.DokkaBuildProperties] extension. + */ +internal fun Project.dokkaBuild(configure: DokkaBuildProperties.() -> Unit) = + extensions.configure(configure) |