gradle
8.5

# ScriptHandlerScope

open class ScriptHandlerScope(delegate: ScriptHandler) : ScriptHandler(source)

Receiver for the `buildscript` block.

## Constructors

ScriptHandlerScope
Link copied to clipboard
constructor(delegate: ScriptHandler)

## Properties

classpath
Link copied to clipboard
val NamedDomainObjectContainer<Configuration>.classpath: NamedDomainObjectProvider<Configuration>

The script classpath configuration.

dependencies
Link copied to clipboard
val dependencies: DependencyHandlerScope

The dependencies of the script.

## Functions

classpath
Link copied to clipboard
fun DependencyConstraintHandler.classpath(dependencyConstraintNotation: Any): DependencyConstraint?
fun DependencyConstraintHandler.classpath(dependencyConstraintNotation: Any, configuration: DependencyConstraint.() -> Unit): DependencyConstraint?

Adds a dependency constraint to the script classpath configuration.

fun DependencyHandler.classpath(dependencyNotation: Any): Dependency?
inline fun <T : ModuleDependency> DependencyHandler.classpath(dependency: T, dependencyConfiguration: T.() -> Unit): T
inline fun DependencyHandler.classpath(dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency
fun DependencyHandler.classpath(dependencyNotation: ProviderConvertible<MinimalExternalModuleDependency>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)
fun DependencyHandler.classpath(dependencyNotation: Provider<MinimalExternalModuleDependency>, dependencyConfiguration: ExternalModuleDependency.() -> Unit)
fun DependencyHandler.classpath(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ExternalModuleDependency
inline fun DependencyHandler.classpath(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency

Adds a dependency to the script classpath.

configurations
Link copied to clipboard
@Incubating
open override fun configurations(configureClosure: Action<in ConfigurationContainer>)
dependencies
Link copied to clipboard
open override fun dependencies(configureClosure: Closure<Any>)
dependencyLocking
Link copied to clipboard
open override fun dependencyLocking(configureClosure: Closure<Any>)
dependencyLocking
Link copied to clipboard
fun ScriptHandler.dependencyLocking(configuration: DependencyLockingHandler.() -> Unit)

Configures the dependency locking for the script dependency configurations.

getClassLoader
Link copied to clipboard
open override fun getClassLoader(): ClassLoader
getConfigurations
Link copied to clipboard
open override fun getConfigurations(): ConfigurationContainer
getDependencies
Link copied to clipboard
open override fun getDependencies(): DependencyHandler
getDependencyLocking
Link copied to clipboard
open override fun getDependencyLocking(): DependencyLockingHandler
getRepositories
Link copied to clipboard
open override fun getRepositories(): RepositoryHandler
getSourceFile
Link copied to clipboard
@Nullable
open override fun getSourceFile(): File?
getSourceURI
Link copied to clipboard
@Nullable
open override fun getSourceURI(): URI?
repositories
Link copied to clipboard
open override fun repositories(configureClosure: Closure<Any>)
repositories
Link copied to clipboard
fun ScriptHandler.repositories(configuration: RepositoryHandler.() -> Unit)

Configures the repositories for the script dependencies.