From 1c7b29448802d2fa60d3e151a4a0948a67931a8c Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Fri, 17 Jan 2025 11:57:26 -0700 Subject: [PATCH] Cleanup --- app/build.gradle.kts | 9 ++++----- docs/build.gradle.kts | 6 +++--- library/build.gradle.kts | 24 ++++-------------------- 3 files changed, 11 insertions(+), 28 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 39a3d8b091..0f0e4e6287 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -270,20 +270,19 @@ tasks.withType { } dokka { - moduleName.set("App") - + moduleName = "App" dokkaSourceSets { main { - analysisPlatform.set(KotlinPlatform.JVM) + analysisPlatform = KotlinPlatform.JVM documentedVisibilities( VisibilityModifier.Public, VisibilityModifier.Protected ) sourceLink { - localDirectory.set(file("..")) + localDirectory = file("..") remoteUrl("https://github.com/recloudstream/cloudstream/tree/master") - remoteLineSuffix.set("#L") + remoteLineSuffix = "#L" } } } diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts index 497f9090b4..203b938181 100644 --- a/docs/build.gradle.kts +++ b/docs/build.gradle.kts @@ -4,10 +4,10 @@ plugins { } dependencies { - dokka(project(":app")) - dokka(project(":library")) + dokka(project(":app:")) + dokka(project(":library:")) } dokka { - moduleName.set("Cloudstream") + moduleName = "Cloudstream" } \ No newline at end of file diff --git a/library/build.gradle.kts b/library/build.gradle.kts index a2350c7858..bc73b3dad9 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -3,7 +3,6 @@ import org.jetbrains.dokka.gradle.engine.parameters.KotlinPlatform import org.jetbrains.dokka.gradle.engine.parameters.VisibilityModifier import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile -import java.net.URI plugins { kotlin("multiplatform") @@ -92,34 +91,19 @@ publishing { } dokka { - moduleName.set("Library") + moduleName = "Library" dokkaSourceSets { configureEach { - analysisPlatform.set(KotlinPlatform.AndroidJVM) + analysisPlatform = KotlinPlatform.AndroidJVM documentedVisibilities( VisibilityModifier.Public, VisibilityModifier.Protected ) sourceLink { - localDirectory.set(file("..")) + localDirectory = file("..") remoteUrl("https://github.com/recloudstream/cloudstream/tree/master") - remoteLineSuffix.set("#L") - } - - externalDocumentationLinks { - register("com.fasterxml.jackson.core") { - url = URI("https://javadoc.io/doc/com.fasterxml.jackson.core/jackson-core/${libs.versions.jacksonModuleKotlin.get()}/") - packageListUrl = URI("https://javadoc.io/doc/com.fasterxml.jackson.core/jackson-core/${libs.versions.jacksonModuleKotlin.get()}/package-list") - } - register("okio") { - url = URI("https://square.github.io/okio/3.x/okio/") - packageListUrl = URI("https://square.github.io/okio/3.x/okio/okio/package-list") - } - register("okhttp") { - url = URI("https://square.github.io/okhttp/5.x/okhttp/okhttp3/") - packageListUrl = URI("https://square.github.io/okhttp/5.x/package-list") - } + remoteLineSuffix = "#L" } } }