Files
AndroidJetpack/kobweb/tools/gradle-plugins/worker/build.gradle.kts
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

39 lines
1.2 KiB
Kotlin

plugins {
`kotlin-dsl`
id("kobweb-gradle-portal")
id("com.varabyte.kobweb.internal.publish")
alias(libs.plugins.kotlinx.serialization)
}
group = "com.varabyte.kobweb.gradle"
version = libs.versions.kobweb.get()
dependencies {
// Get access to Kotlin multiplatform source sets
compileOnly(kotlin("gradle-plugin"))
// Common Gradle plugin used by Library, Application, and Worker plugins
api(projects.tools.gradlePlugins.core)
// Used by the "core" plugin & required to satisfy the validatePlugins task
implementation(projects.common.kobwebCommon)
implementation(libs.kotlinx.serialization.json)
}
gradlePlugin {
plugins {
create("kobwebWorker") {
id = "com.varabyte.kobweb.worker"
displayName = "Kobweb Worker Plugin"
description = "Wraps vanilla web workers with type-safe APIs that can be consumed by a Kobweb application."
implementationClass = "com.varabyte.kobweb.gradle.worker.KobwebWorkerPlugin"
kobwebPublication {
artifactName.set(this@create.displayName)
description.set(this@create.description)
}
}
}
}