diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-04-21 20:17:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 20:17:55 +0200 |
commit | f90b4287399d9fedb7e11295d853b0bda98e11e9 (patch) | |
tree | 449e7ee4ca1ca039c7c46c2f8202c788b28d8971 /integration-tests/gradle/projects/it-configuration/build.gradle.kts | |
parent | eb50c4f28d978fcd914b819d523e8da607d05b0c (diff) | |
download | dokka-f90b4287399d9fedb7e11295d853b0bda98e11e9.tar.gz dokka-f90b4287399d9fedb7e11295d853b0bda98e11e9.tar.bz2 dokka-f90b4287399d9fedb7e11295d853b0bda98e11e9.zip |
Add Gradle integration tests for configuration (#2963)
Diffstat (limited to 'integration-tests/gradle/projects/it-configuration/build.gradle.kts')
-rw-r--r-- | integration-tests/gradle/projects/it-configuration/build.gradle.kts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/integration-tests/gradle/projects/it-configuration/build.gradle.kts b/integration-tests/gradle/projects/it-configuration/build.gradle.kts new file mode 100644 index 00000000..3b81a30a --- /dev/null +++ b/integration-tests/gradle/projects/it-configuration/build.gradle.kts @@ -0,0 +1,29 @@ +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.10-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()
\ No newline at end of file |