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) } } } }