ScriptHandlerScope

Receiver for the buildscript block.

Constructors

Link copied to clipboard
constructor(delegate: ScriptHandler)

Properties

Link copied to clipboard
Link copied to clipboard

The dependencies of the script.

Functions

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.

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

Configures the dependency locking for the script dependency configurations.

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

Configures the repositories for the script dependencies.