KobwebBlock

abstract class KobwebBlock : ExtensionAware(source)

A gradle block used for initializing values that configure a Kobweb project.

This class also exposes a handful of methods useful for querying the project.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface FileGeneratingBlock : ExtensionAware

An interface used for tagging Gradle extensions which generate files for Kobweb.

Properties

Link copied to clipboard
abstract val apiPackage: Property<String>

The root package of all apis.

Link copied to clipboard
abstract val baseGenDir: Property<String>

The path to the root where all generated content will be written to by default, relative to the project build directory.

Link copied to clipboard
abstract val kspProcessorDependency: Property<String>

The KSP processor dependency that should be applied to the project, in string dependency notation.

Link copied to clipboard
abstract val pagesPackage: Property<String>

The root package of all pages.

Link copied to clipboard
abstract val publicPath: Property<String>

The path of public resources inside the project's resources folder, e.g. "public" -> "src/jsMain/resources/public"

Link copied to clipboard

Functions

Link copied to clipboard
@Internal
abstract fun getExtensions(): ExtensionContainer