diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-07-09 16:37:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 16:37:24 +0200 |
commit | fdf5eda3d22ef96f6760cdf80c2ca4d206dc396c (patch) | |
tree | 8d3e41b773e059850586de4dcaf2163de07e6c85 /runners | |
parent | 93da4776655e43915122a6bf3efcdc76b57be611 (diff) | |
download | dokka-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.kt | 4 |
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" |