import org.jetbrains.dokkaVersion import org.jetbrains.kotlin.gradle.tasks.* import org.jetbrains.registerDokkaArtifactPublication plugins { id("org.jetbrains.conventions.kotlin-jvm") id("org.jetbrains.conventions.maven-publish") } dependencies { api(libs.jetbrainsMarkdown) implementation(kotlin("reflect")) implementation(libs.jsoup) implementation(libs.jackson.kotlin) implementation(libs.jackson.xml) constraints { implementation(libs.jackson.databind) { because("CVE-2022-42003") } } implementation(libs.kotlinx.coroutines.core) testImplementation(projects.core.testApi) testImplementation(kotlin("test-junit")) } tasks { processResources { inputs.property("dokkaVersion", dokkaVersion) eachFile { if (name == "dokka-version.properties") { filter { line -> line.replace("", dokkaVersion) } } } } } registerDokkaArtifactPublication("dokkaCore") { artifactId = "dokka-core" }