Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

45 lines
1.5 KiB
Kotlin

plugins {
`kotlin-dsl`
id("kobweb-gradle-portal")
id("com.varabyte.kobweb.internal.publish")
}
group = "com.varabyte.kobwebx.gradle"
version = libs.versions.kobweb.get()
dependencies {
// Get access to Kotlin multiplatform source sets
compileOnly(kotlin("gradle-plugin"))
implementation(libs.bundles.commonmark)
implementation(libs.jsoup)
implementation(libs.kaml)
implementation(projects.common.kobwebCommon)
implementation(projects.common.kobwebxFrontmatter) {
// Dokka interferes with fetching the expected JVM configuration from multiplatform resources
//youtrack.jetbrains.com/issue/KT-72019/DGP-v2-Gradle-resolution-uses-dokka-configurations-instead-of-jvmRuntimeElements
targetConfiguration ="jvmRuntimeElements"
}
// Compile only - the plugin itself should exist at runtime, provided by either the
// Library or Application plugin.
compileOnly(projects.tools.gradlePlugins.core)
}
gradlePlugin {
plugins {
create("kobwebxMarkdown") {
id = "com.varabyte.kobwebx.markdown"
displayName = "Kobwebx Markdown Plugin"
description = "Adds markdown support to a Kobweb project."
implementationClass = "com.varabyte.kobwebx.gradle.markdown.KobwebxMarkdownPlugin"
kobwebPublication {
artifactName.set(this@create.displayName)
description.set(this@create.description)
}
}
}
}