# ScriptHandlerScope

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

Receiver for the `buildscript` block.

#### Since

4.1

## Constructors

ScriptHandlerScope
Link copied to clipboard
constructor(delegate: ScriptHandler)

## Properties

classLoader
Link copied to clipboard
open override val classLoader: ClassLoader?
classpath
Link copied to clipboard
val NamedDomainObjectContainer<Configuration>.classpath: NamedDomainObjectProvider<Configuration>

The script classpath configuration.

configurations
Link copied to clipboard
open override val configurations: ConfigurationContainer?
dependencies
Link copied to clipboard
val dependencies: DependencyHandlerScope

The dependencies of the script.

open override val dependencies: DependencyHandler?
dependencyLocking
Link copied to clipboard
open override val dependencyLocking: DependencyLockingHandler?
repositories
Link copied to clipboard
open override val repositories: RepositoryHandler?
sourceFile
Link copied to clipboard
@get: Nullable
open override val sourceFile: @Nullable File?
sourceURI
Link copied to clipboard
@get: Nullable
open override val sourceURI: @Nullable URI?

## 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
open override fun configurations(action: Action<in ConfigurationContainer?>?)
dependencies
Link copied to clipboard
open override fun dependencies(@DelegatesTo(value = DependencyHandler::class, strategy = 1) configureClosure: Closure<*>?)
dependencyLocking
Link copied to clipboard
open override fun dependencyLocking(@DelegatesTo(value = DependencyLockingHandler::class, strategy = 1) configureClosure: Closure<*>?)
open override fun dependencyLocking(action: Action<in DependencyLockingHandler?>?)
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(): @Nullable File?
getSourceURI
Link copied to clipboard
@Nullable
open override fun getSourceURI(): @Nullable URI?
repositories
Link copied to clipboard
open override fun repositories(@DelegatesTo(value = RepositoryHandler::class, strategy = 1) configureClosure: Closure<*>?)
open override fun repositories(action: Action<in RepositoryHandler?>?)
repositories
Link copied to clipboard
fun ScriptHandler. repositories(configuration: RepositoryHandler.() -> Unit)

Configures the repositories for the script dependencies.