UrlCaptureBuildService

abstract class UrlCaptureBuildService : BuildService<BuildServiceParameters.None> , BuildOperationListener(source)

BuildService implementing BuildOperationListener for use with BuildEventListenerRegistryInternal.onOperationCompletion.

Same pattern as gradle/github-dependency-graph-gradle-plugin. Supports multiple concurrent listeners — coexists with Develocity.

Also doubles as the Isolated-Projects-safe channel between the settings plugin and FlatpakSourcesPlugin: both look up this exact instance via gradle.sharedServices.registerIfAbsent(URL_CAPTURE_SERVICE_NAME, ...) (a singleton keyed by name), instead of stashing state on gradle.extensions — reading another project's entry off the shared Gradle object is exactly what Isolated Projects forbids, while BuildService is the sanctioned cross-project sharing primitive.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@get:Inject
abstract override val parameters: BuildServiceParameters.None?

Functions

Link copied to clipboard
open override fun finished(op: BuildOperationDescriptor, e: OperationFinishEvent)
Link copied to clipboard
@Inject
abstract fun getParameters(): BuildServiceParameters.None?
Link copied to clipboard
open override fun progress(id: OperationIdentifier, e: OperationProgressEvent)
Link copied to clipboard
open override fun started(op: BuildOperationDescriptor, e: OperationStartEvent)