aboutsummaryrefslogtreecommitdiff
path: root/dokka-integration-tests/gradle/projects/it-configuration/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'dokka-integration-tests/gradle/projects/it-configuration/build.gradle.kts')
-rw-r--r--dokka-integration-tests/gradle/projects/it-configuration/build.gradle.kts33
1 files changed, 33 insertions, 0 deletions
diff --git a/dokka-integration-tests/gradle/projects/it-configuration/build.gradle.kts b/dokka-integration-tests/gradle/projects/it-configuration/build.gradle.kts
new file mode 100644
index 00000000..736202bb
--- /dev/null
+++ b/dokka-integration-tests/gradle/projects/it-configuration/build.gradle.kts
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ */
+
+import org.jetbrains.dokka.gradle.DokkaTask
+import org.jetbrains.dokka.gradle.kotlinSourceSet
+
+plugins {
+ kotlin("jvm")
+ id("org.jetbrains.dokka")
+}
+
+buildscript {
+ dependencies {
+ classpath("org.jetbrains.dokka:dokka-base:${System.getenv("DOKKA_VERSION")}")
+ }
+}
+
+version = "1.9.20-SNAPSHOT"
+
+apply(from = "../template.root.gradle.kts")
+
+tasks.withType<DokkaTask> {
+ moduleName.set("Configuration Test Project")
+ dokkaSourceSets {
+ configureEach {
+ failOnWarning.set(project.getBooleanProperty("fail_on_warning"))
+ reportUndocumented.set(project.getBooleanProperty("report_undocumented"))
+ }
+ }
+}
+
+fun Project.getBooleanProperty(name: String): Boolean = (project.property(name) as String).toBoolean()