EmbedCodeExtension

abstract class EmbedCodeExtension

Configures Embed Code for a Gradle project.

The extension maps directly to Embed Code command-line options and does not create or require a YAML configuration file.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val codePath: DirectoryProperty

The root directory containing source files used by embedding instructions.

Link copied to clipboard
abstract val docExcludes: ListProperty<String>

Glob patterns selecting documentation files to skip.

Link copied to clipboard
abstract val docIncludes: ListProperty<String>

Glob patterns selecting documentation files to process.

Link copied to clipboard
abstract val docsPath: DirectoryProperty

The root directory containing Markdown or HTML documentation.

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

The base URL of the Embed Code releases.

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

An optional GitHub token used to read release checksum metadata.

Link copied to clipboard
abstract val info: Property<Boolean>

Whether Embed Code should print informational log messages.

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

Text inserted between joined fragment parts.

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

An optional SHA-256 digest of the configured release asset.

Link copied to clipboard
abstract val stacktrace: Property<Boolean>

Whether Embed Code should print stack traces after panics.

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

The exact Embed Code release tag to install.

Functions

Link copied to clipboard
fun namedSource(name: String, directory: Directory)

Adds a named source root.

fun namedSource(name: String, directory: Provider<Directory>)

Adds a named source root supplied by another Gradle provider.