aboutsummaryrefslogtreecommitdiff
path: root/runners
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-07-09 16:37:24 +0200
committerGitHub <noreply@github.com>2021-07-09 16:37:24 +0200
commitfdf5eda3d22ef96f6760cdf80c2ca4d206dc396c (patch)
tree8d3e41b773e059850586de4dcaf2163de07e6c85 /runners
parent93da4776655e43915122a6bf3efcdc76b57be611 (diff)
downloaddokka-fdf5eda3d22ef96f6760cdf80c2ca4d206dc396c.tar.gz
dokka-fdf5eda3d22ef96f6760cdf80c2ca4d206dc396c.tar.bz2
dokka-fdf5eda3d22ef96f6760cdf80c2ca4d206dc396c.zip
Add gradle version check (#2006)
Diffstat (limited to 'runners')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
index 41b29cdc..8e306e4c 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
@@ -5,9 +5,13 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Dependency
import org.gradle.kotlin.dsl.register
+import org.gradle.util.GradleVersion
open class DokkaPlugin : Plugin<Project> {
override fun apply(project: Project) {
+ if (GradleVersion.version(project.gradle.gradleVersion) < GradleVersion.version("5.6")) {
+ project.logger.warn("Dokka: Build is using unsupported gradle version, expected at least 5.6 but got ${project.gradle.gradleVersion}. This may result in strange errors")
+ }
project.setupDokkaTasks("dokkaHtml") {
description = "Generates documentation in 'html' format"