aboutsummaryrefslogtreecommitdiff
path: root/dokka-runners/dokkatoo/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'dokka-runners/dokkatoo/build.gradle.kts')
-rw-r--r--dokka-runners/dokkatoo/build.gradle.kts47
1 files changed, 47 insertions, 0 deletions
diff --git a/dokka-runners/dokkatoo/build.gradle.kts b/dokka-runners/dokkatoo/build.gradle.kts
new file mode 100644
index 00000000..67184998
--- /dev/null
+++ b/dokka-runners/dokkatoo/build.gradle.kts
@@ -0,0 +1,47 @@
+import buildsrc.utils.excludeGeneratedGradleDsl
+import buildsrc.utils.initIdeProjectLogo
+
+plugins {
+ buildsrc.conventions.base
+ idea
+}
+
+group = "org.jetbrains.dokka.dokkatoo"
+version = "2.1.0-SNAPSHOT"
+
+
+idea {
+ module {
+ excludeGeneratedGradleDsl(layout)
+
+ excludeDirs.apply {
+ // exclude .gradle, IDE dirs from nested projects (e.g. example & template projects)
+ // so IntelliJ project-wide search isn't cluttered with irrelevant files
+ val excludedDirs = setOf(
+ ".idea",
+ ".gradle",
+ "build",
+ "gradle/wrapper",
+ "ANDROID_SDK",
+ )
+ addAll(
+ projectDir.walk().filter { file ->
+ excludedDirs.any {
+ file.invariantSeparatorsPath.endsWith(it)
+ }
+ }
+ )
+ }
+ }
+}
+
+initIdeProjectLogo("modules/docs/images/logo-icon.svg")
+
+val dokkatooVersion by tasks.registering {
+ description = "prints the Dokkatoo project version (used during release to verify the version)"
+ group = "help"
+ val version = providers.provider { project.version }
+ doLast {
+ logger.quiet("${version.orNull}")
+ }
+}