File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin .gradle.dsl.KotlinProjectExtension
1+ import org.jetbrains.dokka .gradle.DokkaTaskPartial
22import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3+ import java.net.URL
34
45plugins {
56 kotlin(" jvm" )
@@ -28,7 +29,7 @@ tasks.withType<KotlinCompile> {
2829 }
2930}
3031
31- extensions.configure< KotlinProjectExtension > {
32+ kotlin {
3233 explicitApi()
3334}
3435
@@ -41,6 +42,19 @@ repositories {
4142 mavenCentral()
4243}
4344
45+ tasks.withType<DokkaTaskPartial >().configureEach {
46+ dokkaSourceSets.configureEach {
47+ sourceLink {
48+ localDirectory.set(file(" src/main/kotlin/" ))
49+ remoteUrl.set(URL (" https://github.com/EndlessCodeGroup/Mimic/tree/develop/${project.name} /src/main/kotlin/" ))
50+ }
51+ externalDocumentationLink {
52+ url.set(URL (" https://hub.spigotmc.org/javadocs/spigot/" ))
53+ packageListUrl.set(URL (" https://gist.githubusercontent.com/osipxd/604c9b3f91c3a6c56050f4a3b027f333/raw/package-list" ))
54+ }
55+ }
56+ }
57+
4458fun DependencyHandlerScope.testingDependencies () {
4559 testImplementation(kotlin(" test-junit5" ))
4660 testImplementation(junit.jupiter)
You can’t perform that action at this time.
0 commit comments