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.8.20-SNAPSHOT" apply(from = "../template.root.gradle.kts") tasks.withType { 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()