NpmRegistry

abstract class NpmRegistry : NamedInput

Npm registry configuration

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@get:Input
abstract val access: Property<NpmAccess>

Registry access

Link copied to clipboard
@get:Input
@get:Optional
abstract val authToken: Property<String>

Auth token to use when authenticating with the registry. More info

Link copied to clipboard
@get:Input
@get:Optional
abstract val dry: Property<Boolean>

Specifies if a dry-run should be added to the npm command arguments by default. Dry run does all the normal run des except actual file uploading. Defaults to false.

Link copied to clipboard
@get:Input
@get:Optional
abstract val otp: Property<String>

Optional OTP to use when authenticating with the registry

Link copied to clipboard
@get:Input
abstract val uri: Property<URI>

NPM registry uri to publish packages to. Should include schema domain and path if required

Functions

Link copied to clipboard
@Input
abstract override fun getName(): String
Link copied to clipboard
fun Property<URI>.set(uri: String)

Convenience DSL to set URI properties via String

fun Property<URI>.set(uri: Provider<String>)

Convenience DSL to set URI properties via Provider<String>