diff --git a/build.gradle.kts b/build.gradle.kts index 146852b..3ce114e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ val junitVersion by extra { "5.8.1" } plugins { kotlin("jvm") version "2.1.10" - id("org.jetbrains.dokka") version "1.9.20" + id("org.jetbrains.dokka") version "2.0.0" id("io.github.gradle-nexus.publish-plugin") version "2.0.0" `java-library` `maven-publish` @@ -42,6 +42,23 @@ tasks{ } } +dokka { + moduleName.set("Java Time Fun") + dokkaSourceSets.main { + includes.from("README.md") + sourceLink { + localDirectory.set(file("src/main/kotlin")) + remoteUrl("https://github.com/seljabali/java-time-fun") + remoteLineSuffix.set("#L") + } + } + pluginsConfiguration.html { + customStyleSheets.from("styles.css") + customAssets.from("/screenshots/logo.png") + footerMessage.set("Sami Eljabali") + } +} + signing { useInMemoryPgpKeys( System.getProperty("GPG_PRIVATE_KEY"), diff --git a/gradle.properties b/gradle.properties index 29e08e8..0eb1f2f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,2 @@ -kotlin.code.style=official \ No newline at end of file +kotlin.code.style=official +org.jetbrains.dokka.experimental.gradle.pluginMode=V2EnabledWithHelpers \ No newline at end of file