From 35d15601f2d129a7d3db67dd9e2f4c41c87ef083 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Fri, 20 Oct 2023 00:39:12 +1300 Subject: Contribute Dokkatoo (#3188) --- dokka-runners/dokkatoo/build.gradle.kts | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 dokka-runners/dokkatoo/build.gradle.kts (limited to 'dokka-runners/dokkatoo/build.gradle.kts') 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}") + } +} -- cgit