KJS Resources Producer

Exposes Kotlin/JS resources to other projects.

For a technical explanation of how this plugin works, see the Shared module.

Configuration

Currently, this plugin requires the Kotlin Multiplatform plugin. Otherwise, it does nothing.

// build.gradle.kts
plugins {
kotlin("multiplatform") version "<add the version here>"
id("dev.opensavvy.resources.producer") version "<add the version here>"
}

kotlin {
js {
// …
}
}

That's all! Now, you can use the Consumer plugin in your other projects that are part of the same build.

If you want to publish your project to a Maven or Ivy repository, follow the normal instructions on how to publish a Kotlin Multiplatform library and the resources will automatically be added as a variant.

Packages

Link copied to clipboard