PeerLibrarySpec

abstract class PeerLibrarySpec @Inject constructor

Per-declaration metadata for a peer shared library declared in sharedLibrary { dependencies { sharedLibrary(...) } }.

Captures overrides the consumer applied via the DSL action block; values not overridden fall back to conventions derived from the dependency's coordinates (artifact name) or project path (project name).

sharedLibrary {
dependencies {
sharedLibrary("com.example:config-lib:1.0.0") {
libraryName = "config"
implicit = false
}
}
}

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard
@get:Internal
abstract val identifier: Property<String>

Stable identifier used to correlate this spec with resolved artifacts.

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

When true (default, mirrors the self-library), the peer library is loaded into every pipeline without requiring @Library('name') _.

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

Name registered in Jenkins' GlobalLibraries for this peer library.