JenkinsPlugins

abstract class JenkinsPlugins @Inject constructor : Dependencies

Dependency block for declaring Jenkins HPI/JPI plugin dependencies inside sharedLibrary {}.

sharedLibrary {
plugins {
plugin("org.jenkins-ci.plugins.workflow:workflow-multibranch")
plugin("org.6wind.jenkins:lockable-resources:2.18")
plugin(libs.workflow.multibranch) // single version catalog entry
plugins(libs.bundles.allPlugins) // version catalog bundle
}
}

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard
@get:Inject
abstract val dependencyConstraintFactory: DependencyConstraintFactory?
Link copied to clipboard
@get:Inject
abstract val dependencyFactory: DependencyFactory?
Link copied to clipboard
@get:Inject
abstract val objectFactory: ObjectFactory?
Link copied to clipboard
abstract val pluginCollector: DependencyCollector
Link copied to clipboard
@get:Inject
abstract val project: Project?

Functions

Link copied to clipboard
open fun constraint(dependencyConstraintNotation: CharSequence?): DependencyConstraint?
open fun constraint(project: ProjectDependency?): DependencyConstraint?
@Incubating
open fun constraint(dependencyConstraint: ProviderConvertible<out MinimalExternalModuleDependency?>?): Provider<out DependencyConstraint?>?
@Incubating
open fun constraint(dependencyConstraint: Provider<out MinimalExternalModuleDependency?>?): Provider<out DependencyConstraint?>?
Link copied to clipboard
open fun module(dependencyNotation: CharSequence?): ExternalModuleDependency?
open fun module(group: @Nullable String?, name: String?, version: @Nullable String?): ExternalModuleDependency?
Link copied to clipboard
fun plugin(notation: CharSequence)

Declares a Jenkins plugin by "group:artifact" or "group:artifact:version" notation.

fun plugin(dependency: Provider<out MinimalExternalModuleDependency>)

Declares a Jenkins plugin from a version catalog entry.

Link copied to clipboard
fun plugins(bundle: Provider<out Iterable<Dependency>>)

Declares all Jenkins plugins from a version catalog bundle (e.g. jenkinsPlugins.bundles.allPlugins).

Link copied to clipboard
open fun project(): ProjectDependency?
open fun project(projectPath: String?): ProjectDependency?