diff options
| -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() + } +} |
