diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-01-23 17:35:57 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-01-23 17:35:57 +0900 |
| commit | 6f787a7bc76d6b73de1fd2367448bb2b6917e673 (patch) | |
| tree | f0d3ce2254018901ec09a0aa18ab0d5823a3ca1b | |
| parent | 96b04d36f3ae5301f6578a101980d24e82905310 (diff) | |
| download | LunaticChat-6f787a7bc76d6b73de1fd2367448bb2b6917e673.tar.gz LunaticChat-6f787a7bc76d6b73de1fd2367448bb2b6917e673.tar.bz2 LunaticChat-6f787a7bc76d6b73de1fd2367448bb2b6917e673.zip | |
fix(docs): Fix Dokka single module
| -rw-r--r-- | build.gradle.kts | 14 | ||||
| -rw-r--r-- | settings.gradle.kts | 16 |
2 files changed, 29 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 1a3ab58..327e4a8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.dokka.gradle.DokkaExtension +import org.jetbrains.dokka.gradle.DokkaTaskPartial import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -22,6 +24,7 @@ allprojects { subprojects { apply(plugin = "org.jetbrains.kotlin.jvm") apply(plugin = "org.jlleitschuh.gradle.ktlint") + apply(plugin = "org.jetbrains.dokka") tasks.withType<KotlinCompile> { compilerOptions { @@ -33,6 +36,17 @@ subprojects { useJUnitPlatform() } + configure<DokkaExtension> { + dokkaSourceSets { + configureEach { + sourceLink { + remoteUrl("https://github.com/m1sk9/LunaticChat/tree/main") + localDirectory.set(rootDir) + } + } + } + } + afterEvaluate { dependencies { add("testImplementation", "org.jetbrains.kotlin:kotlin-test-junit5") diff --git a/settings.gradle.kts b/settings.gradle.kts index df160d6..2ce29f6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -3,5 +3,19 @@ rootProject.name = "LunaticChat" include( "engine", "platform-paper", - "platform-velocity" + "platform-velocity", + "dokka" ) + +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + } +} + +dependencyResolutionManagement { + repositories { + mavenCentral() + } +} |
