Ellen Spertus
09/11/2022, 10:18 PMEllen Spertus
09/11/2022, 10:20 PMEllen Spertus
09/11/2022, 10:24 PMimport org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
id("org.jetbrains.dokka") version "1.7.10"
}
group = "edu.northeastern.cs2500"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.junit.jupiter:junit-jupiter:5.9.0")
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.10")
testImplementation(kotlin("test"))
}
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
dokkaSourceSets {
named("main") {
includes.from(fileTree(project.rootDir) {
include("src/**/package.md")
})
}
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
Ignat Beresnev
09/12/2022, 1:23 PMkotlin-as-java-plugin
in your dependencies - that's why the signatures are as if they were written in Java. If you remove it, you'll see your average Kotlin signatures
Regarding styling, stdlib uses an old (~1.4-1.5) and customized version of Dokka, we're actually in the process of migrating it to the recent version. So it's not very representative
This is how unmodified Dokka should look like for 1.7.10: https://kotlinlang.org/api/kotlinx.coroutines/
We're also introducing some UI changes in the upcoming 1.7.20 release, so it'll look noticeably better 🙂Ellen Spertus
09/12/2022, 3:53 PMI see you haveD'oh!in your dependencies - that's why the signatures are as if they were written in Java. If you remove it, you'll see your average Kotlin signatureskotlin-as-java-plugin