From 073caa78cb551cbab25db02077b72cca8d3a048b Mon Sep 17 00:00:00 2001 From: Seokju Na Date: Tue, 21 Jul 2026 12:04:24 +0900 Subject: [PATCH] Name Dokka docs after the artifact instead of :lib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dokka defaults its module name (and source-set name) to the Gradle module path, so the published -javadoc.jar — and javadoc.io — labeled the docs `:lib` and `:lib/main`. Set `moduleName` to `webview-bundle-android` and relabel the source set to `android`, so no `:lib` leaks into the published docs. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01XDfLFUFoRLa9WiyBxSPa3j --- lib/build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 9c1efb5..9c802ce 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -11,6 +11,17 @@ plugins { val publishVersion = (findProperty("VERSION") as String?) ?: "0.0.0-LOCAL" +// Name the generated API docs after the artifact instead of Dokka's default, which is the Gradle +// module path (`:lib`) — that name ends up in the published -javadoc.jar and on javadoc.io. +dokka { + moduleName.set("webview-bundle-android") + dokkaSourceSets.configureEach { + // The default source-set name is the Gradle path + variant (`:lib/main`), which shows up in + // the docs' platform-filter chip; relabel it so no `:lib` leaks into the published docs. + displayName.set("android") + } +} + android { namespace = "dev.wvb" compileSdk = 35