BuildlessExtension

abstract class BuildlessExtension @Inject constructor(factory: ObjectFactory) : BuildlessExtensionAPI<Settings, BuildlessSettings> (source)

Buildless for Gradle: Extension

The extension for the Buildless plugin is used from the settings.gradle.kts script to configure the plugin's behavior and features.

Parameters

factory

Object factory for Gradle-provided injection.

See also

For the public API suite supported by this plugin for configuration of build caching.

For a service which may be consumed from other plugins to interact with Buildless.

Constructors

Link copied to clipboard
@Inject
constructor(factory: ObjectFactory)

Types

Link copied to clipboard
object Companion

Constants associated with the Buildless extension.

Link copied to clipboard

Mutable settings class for local agent cache settings.

Link copied to clipboard

Mutable settings class for local build cache settings.

Link copied to clipboard

Mutable settings class for remote build cache settings.

Properties

Link copied to clipboard
open override val agent: MutableAgentCacheSettings

Specifies agent cache settings for this Gradle project. Agent caching keeps built outputs within a local cache service, like Buildless Agent. Agent caching is enabled by default if an API key is present in the local environment, using the main Gradle cache endpoint.

Link copied to clipboard
open override val apiKey: Property<ApiKey?>

API key to install.

Link copied to clipboard

Specifies remote cache settings for this Gradle project. Remote caching keeps built outputs within a remote cache service, like Buildless. Remote caching is enabled by default if an API key is present in the local environment, using the main Gradle cache endpoint.

Link copied to clipboard
open override val debug: Property<Boolean>

Whether to enable debug mode.

Link copied to clipboard
open override val local: MutableLocalCacheSettings

Specifies local cache settings for this Gradle project. Local caching keeps various cached objects in a directory on-disk, and objects never leave the developer's machine. Local caching is enabled by default, and generally it is recommended to keep it active.

Link copied to clipboard

Alias for local cache settings.

Link copied to clipboard

Alias for cloud remote cache settings.

Link copied to clipboard
open override val reportErrors: Property<Boolean>

Whether to enable error reporting.

Link copied to clipboard
open override val telemetry: Property<Boolean>

Whether to enable telemetry integration.

Link copied to clipboard
open override val transport: Property<CacheTransport>

Cache transport to use.

Functions

Link copied to clipboard
open override fun agent(config: MutableAgentCacheSettings.() -> Unit)

Configure agent caching settings with the provided config function.

Link copied to clipboard
open fun apiKey(key: ApiKey)

Set the API key to use when interacting with the Buildless service.

open fun apiKey(value: String)

Set the API key from the provided string value.

Link copied to clipboard
open override fun config(context: Settings, configure: BuildlessSettings.() -> Unit)

Main configuration entrypoint for the extension implementing this interface; not meant to be used by end-user code.

Link copied to clipboard
open override fun localCache(config: MutableLocalCacheSettings.() -> Unit)

Configure local caching settings with the provided config function.

Link copied to clipboard
open override fun remoteCache(config: MutableRemoteCacheSettings.() -> Unit)

Configure remote caching settings with the provided config function.