From f5faead88b5006d79693ec36c98ed7728799bdd9 Mon Sep 17 00:00:00 2001 From: Sami Eljabali Date: Wed, 19 Feb 2025 16:04:12 +0300 Subject: [PATCH 1/2] add new gradle tasks --- build.gradle.kts | 17 +++++++++++++++++ gradle.properties | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 73e4d2b..3ce114e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 From 6fe7955049cc11ce641c6e44548f77a3206c54f7 Mon Sep 17 00:00:00 2001 From: Sami Eljabali Date: Wed, 19 Feb 2025 16:18:09 +0300 Subject: [PATCH 2/2] update version --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index e48c9f6..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`