diff --git a/CHANGELOG.md b/CHANGELOG.md index cc7237c..09931b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.3] - January 8th, 2022 +### Changed +- Fixed bug where documentation home page was being generated on plugin load + ## [0.3.2] - January 8th, 2022 ### Added - Optional root `Project.md` file to include in documentation diff --git a/core/src/main/kotlin/io/bkbn/sourdough/gradle/core/RootPlugin.kt b/core/src/main/kotlin/io/bkbn/sourdough/gradle/core/RootPlugin.kt index d35299d..4aa86c7 100644 --- a/core/src/main/kotlin/io/bkbn/sourdough/gradle/core/RootPlugin.kt +++ b/core/src/main/kotlin/io/bkbn/sourdough/gradle/core/RootPlugin.kt @@ -140,16 +140,18 @@ class RootPlugin : Plugin { finalizedBy("generateDokkaHomePage") } tasks.register("generateDokkaHomePage") { - val version = version.toString() - val dokkaDir = rootDir.resolve(rootFolder) - if (!dokkaDir.exists()) { - dokkaDir.mkdir() - } - val index = rootDir.resolve("$rootFolder/index.html") - if (!index.exists()) { - index.createNewFile() + doLast { + val version = version.toString() + val dokkaDir = rootDir.resolve(rootFolder) + if (!dokkaDir.exists()) { + dokkaDir.mkdir() + } + val index = rootDir.resolve("$rootFolder/index.html") + if (!index.exists()) { + index.createNewFile() + } + index.writeText("\n") } - index.writeText("\n") } } } diff --git a/gradle.properties b/gradle.properties index a16bce2..7bcc60d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Project -project.version=0.3.2 +project.version=0.3.3 # Kotlin kotlin.code.style=official