PrecompiledProjectScript

open class PrecompiledProjectScript(val delegate: Project) : ProjectDelegate(source)

Deprecated

Kept for compatibility with precompiled script plugins published with Gradle versions prior to 6.0

Legacy script template definition for precompiled Kotlin scripts targeting Project instances.

Constructors

Link copied to clipboard
constructor(delegate: Project)

Types

Properties

Link copied to clipboard
open val delegate: Project
Link copied to clipboard

The extra properties extension in this object's extension container.

Functions

Link copied to clipboard
open override fun absoluteProjectPath(path: String): String
Link copied to clipboard
open override fun afterEvaluate(closure: Closure<*>)
open override fun afterEvaluate(action: Action<in Project>)
Link copied to clipboard
open override fun allprojects(configureClosure: Closure<*>)
open override fun allprojects(action: Action<in Project>)
Link copied to clipboard
open override fun ant(configureClosure: Closure<*>): AntBuilder
open override fun ant(configureAction: Action<in AntBuilder>): AntBuilder
Link copied to clipboard
open override fun apply(closure: Closure<*>)
open override fun apply(options: Map<String, *>)
open override fun apply(action: Action<in ObjectConfigurationAction>)
Link copied to clipboard
inline fun <T : Plugin<Project>> Project.apply()
inline fun <T : Plugin<*>> PluginAware.apply()

Applies the plugin of the given type T. Does nothing if the plugin has already been applied.

inline fun PluginAware.apply(vararg options: Pair<String, Any?>)

Kotlin extension function for org.gradle.api.plugins.PluginAware.apply.

fun PluginAware.apply(from: Any? = null, plugin: String? = null, to: Any? = null)

Applies the given plugin or script.

Link copied to clipboard
inline fun <T : Plugin<*>> PluginAware.applyTo(vararg targets: Any)

Applies the plugin of the given type T to the specified object. Does nothing if the plugin has already been applied.

Link copied to clipboard
open override fun artifacts(configureClosure: Closure<*>)
open override fun artifacts(configureAction: Action<in ArtifactHandler>)
Link copied to clipboard
fun Project.artifacts(configuration: ArtifactHandlerScope.() -> Unit)

Configures the artifacts for this project.

Link copied to clipboard
open override fun beforeEvaluate(closure: Closure<*>)
open override fun beforeEvaluate(action: Action<in Project>)
Link copied to clipboard
open fun buildscript(block: ScriptHandlerScope.() -> Unit)

Configures the build script classpath for this project.

open override fun buildscript(configureClosure: Closure<*>)
Link copied to clipboard

Configures the build script classpath for this project.

Link copied to clipboard
open operator override fun compareTo(other: Project?): Int
Link copied to clipboard
open override fun components(configuration: Action<in SoftwareComponentContainer>)
Link copied to clipboard
open override fun configurations(configureClosure: Closure<*>)
Link copied to clipboard
open override fun configure(object: Any, configureClosure: Closure<*>): Any
open override fun configure(objects: Iterable<*>, configureClosure: Closure<*>): Iterable<*>
open override fun <T> configure(objects: Iterable<T>, configureAction: Action<in T>): Iterable<T>
Link copied to clipboard
inline fun <T : Any> Project.configure(noinline configuration: T.() -> Unit)

Executes the given configuration block against the project extension of the specified type.

inline fun <T : Any> ExtensionAware.configure(noinline configuration: T.() -> Unit)

Executes the given configuration block against the extension of the specified type.

Link copied to clipboard
open override fun <T> container(type: Class<T>): NamedDomainObjectContainer<T>
open override fun <T> container(type: Class<T>, factoryClosure: Closure<*>): NamedDomainObjectContainer<T>
open override fun <T> container(type: Class<T>, factory: NamedDomainObjectFactory<T>): NamedDomainObjectContainer<T>
Link copied to clipboard
inline fun <T : Any> Project.container(noinline factory: (String) -> T): NamedDomainObjectContainer<T>

Creates a container for managing named objects of the specified type.

inline fun <T : Any> Project.container(type: KClass<T>, factory: NamedDomainObjectFactory<T>): NamedDomainObjectContainer<T>

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.Project.container.

Link copied to clipboard
open override fun copy(closure: Closure<*>): WorkResult
open override fun copy(action: Action<in CopySpec>): WorkResult
Link copied to clipboard
open override fun copySpec(): CopySpec
open override fun copySpec(closure: Closure<*>): CopySpec
open override fun copySpec(action: Action<in CopySpec>): CopySpec
Link copied to clipboard
open override fun createAntBuilder(): AntBuilder
Link copied to clipboard
open override fun defaultTasks(vararg defaultTasks: String?)
Link copied to clipboard
inline fun Project.defaultTasks(vararg tasks: Task)

Sets the default tasks of this project. These are used when no tasks names are provided when starting the build.

Link copied to clipboard
open override fun delete(vararg paths: Any?): Boolean
open override fun delete(action: Action<in DeleteSpec>): WorkResult
Link copied to clipboard
open override fun dependencies(configureClosure: Closure<*>)
Link copied to clipboard

Configures the dependencies for this project.

Link copied to clipboard
open override fun dependencyLocking(configuration: Action<in DependencyLockingHandler>)
Link copied to clipboard
open override fun depthCompare(otherProject: Project): Int
Link copied to clipboard
open override fun evaluationDependsOn(path: String): Project
Link copied to clipboard
open override fun evaluationDependsOnChildren()
Link copied to clipboard
open override fun exec(closure: Closure<*>): ExecResult
open override fun exec(action: Action<in ExecSpec>): ExecResult
Link copied to clipboard
open override fun file(path: Any): File
open override fun file(path: Any, validation: PathValidation): File
Link copied to clipboard
open override fun files(vararg paths: Any?): ConfigurableFileCollection
open override fun files(paths: Any, configureClosure: Closure<*>): ConfigurableFileCollection
open override fun files(paths: Any, configureAction: Action<in ConfigurableFileCollection>): ConfigurableFileCollection
Link copied to clipboard
open override fun fileTree(baseDir: Any): ConfigurableFileTree
open override fun fileTree(args: Map<String, *>): ConfigurableFileTree
open override fun fileTree(baseDir: Any, configureClosure: Closure<*>): ConfigurableFileTree
open override fun fileTree(baseDir: Any, configureAction: Action<in ConfigurableFileTree>): ConfigurableFileTree
Link copied to clipboard
inline fun Project.fileTree(vararg args: Pair<String, Any?>): ConfigurableFileTree

Kotlin extension function for org.gradle.api.Project.fileTree.

Link copied to clipboard
open override fun findProject(path: String): Project?
Link copied to clipboard
open override fun findProperty(propertyName: String): Any?
Link copied to clipboard
open override fun getAllprojects(): MutableSet<Project>
Link copied to clipboard
open override fun getAllTasks(recursive: Boolean): MutableMap<Project, MutableSet<Task>>
Link copied to clipboard
open override fun getAnt(): AntBuilder
Link copied to clipboard
open override fun getArtifacts(): ArtifactHandler
Link copied to clipboard
open override fun getBuildDir(): File
Link copied to clipboard
open override fun getBuildFile(): File
Link copied to clipboard
open override fun getBuildscript(): ScriptHandler
Link copied to clipboard
open override fun getBuildTreePath(): String
Link copied to clipboard
open override fun getChildProjects(): MutableMap<String, Project>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getConvention(): Convention
Link copied to clipboard
open override fun getDefaultTasks(): MutableList<String>
Link copied to clipboard
open override fun getDependencies(): DependencyHandler
Link copied to clipboard
open override fun getDependencyFactory(): DependencyFactory
Link copied to clipboard
open override fun getDependencyLocking(): DependencyLockingHandler
Link copied to clipboard
open override fun getDepth(): Int
Link copied to clipboard
open override fun getDescription(): String?
Link copied to clipboard
open override fun getDisplayName(): String
Link copied to clipboard
open override fun getExtensions(): ExtensionContainer
Link copied to clipboard
open override fun getGradle(): Gradle
Link copied to clipboard
open override fun getGroup(): Any
Link copied to clipboard
open override fun getIsolated(): IsolatedProject
Link copied to clipboard
open override fun getLayout(): ProjectLayout
Link copied to clipboard
open override fun getLogger(): Logger
Link copied to clipboard
open override fun getLogging(): LoggingManager
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open override fun getNormalization(): InputNormalizationHandler
Link copied to clipboard
open override fun getObjects(): ObjectFactory
Link copied to clipboard
open override fun getParent(): Project?
Link copied to clipboard
open override fun getPath(): String
Link copied to clipboard
open override fun getPluginManager(): PluginManager
Link copied to clipboard
open override fun getPlugins(): PluginContainer
Link copied to clipboard
open override fun getProject(): Project
Link copied to clipboard
open override fun getProjectDir(): File
Link copied to clipboard
open override fun getProperties(): MutableMap<String, *>
Link copied to clipboard
open override fun getProviders(): ProviderFactory
Link copied to clipboard
open override fun getRepositories(): RepositoryHandler
Link copied to clipboard
open override fun getResources(): ResourceHandler
Link copied to clipboard
open override fun getRootDir(): File
Link copied to clipboard
open override fun getRootProject(): Project
Link copied to clipboard
open override fun getState(): ProjectState
Link copied to clipboard
open override fun getStatus(): Any
Link copied to clipboard
open override fun getSubprojects(): MutableSet<Project>
Link copied to clipboard
open override fun getTasks(): TaskContainer
Link copied to clipboard
open override fun getTasksByName(name: String, recursive: Boolean): MutableSet<Task>
Link copied to clipboard
open override fun getVersion(): Any
Link copied to clipboard
fun Project.gradleKotlinDsl(): Dependency

Creates a dependency on the API of the current version of the Gradle Kotlin DSL.

Link copied to clipboard
open override fun hasProperty(propertyName: String): Boolean
Link copied to clipboard
open override fun javaexec(closure: Closure<*>): ExecResult
open override fun javaexec(action: Action<in JavaExecSpec>): ExecResult
Link copied to clipboard
open override fun mkdir(path: Any): File
Link copied to clipboard
open override fun normalization(configuration: Action<in InputNormalizationHandler>)
Link copied to clipboard

Configures the plugin dependencies for this project.

Link copied to clipboard

Nested plugins blocks are NOT allowed, for example:

Link copied to clipboard
open override fun project(path: String): Project
open override fun project(path: String, configureClosure: Closure<*>): Project
open override fun project(path: String, configureAction: Action<in Project>): Project
Link copied to clipboard
open override fun property(propertyName: String): Any?
Link copied to clipboard
operator fun Project.provideDelegate(any: Any?, property: KProperty<*>): PropertyDelegate

Locates a property on Project.

Link copied to clipboard
open override fun <T : Any> provider(value: Callable<out T?>): Provider<T>
Link copied to clipboard
open override fun relativePath(path: Any): String
Link copied to clipboard
open override fun relativeProjectPath(path: String): String
Link copied to clipboard
open override fun repositories(configureClosure: Closure<*>)
Link copied to clipboard
fun Project.repositories(configuration: RepositoryHandler.() -> Unit)

Configures the repositories for this project.

Link copied to clipboard
open override fun setBuildDir(path: File)
open override fun setBuildDir(path: Any)
Link copied to clipboard
open override fun setDefaultTasks(defaultTasks: MutableList<String>)
Link copied to clipboard
open override fun setDescription(description: String?)
Link copied to clipboard
open override fun setGroup(group: Any)
Link copied to clipboard
open override fun setProperty(name: String, value: Any?)
Link copied to clipboard
open override fun setStatus(status: Any)
Link copied to clipboard
open override fun setVersion(version: Any)
Link copied to clipboard
open override fun subprojects(configureClosure: Closure<*>)
open override fun subprojects(action: Action<in Project>)
Link copied to clipboard
open override fun sync(action: Action<in SyncSpec>): WorkResult
Link copied to clipboard
open override fun tarTree(tarPath: Any): FileTree
Link copied to clipboard
open override fun task(name: String): Task
open override fun task(name: String, configureClosure: Closure<*>): Task
open override fun task(name: String, configureAction: Action<in Task>): Task
open override fun task(args: Map<String, *>, name: String): Task
open override fun task(args: Map<String, *>, name: String, configureClosure: Closure<*>): Task
Link copied to clipboard
inline fun <type : Task> Project.task(name: String): type

Creates a Task with the given name and type, and adds it to this project tasks container.

inline fun Project.task(name: String, vararg args: Pair<String, Any?>): Task

Kotlin extension function for org.gradle.api.Project.task.

inline fun <type : Task> Project.task(name: String, noinline configuration: type.() -> Unit): type

Creates a Task with the given name and type, configures it with the given configuration action, and adds it to this project tasks container.

fun <T : Task> Project.task(name: String, type: KClass<T>, configuration: T.() -> Unit): T
Link copied to clipboard
inline fun <T : Any> Project.the(): T
fun <T : Any> Project.the(extensionType: KClass<T>): T

Returns the project extension of the specified type.

inline fun <T : Any> ExtensionAware.the(): T

Returns the extension of the specified type.

fun <T : Any> ExtensionAware.the(extensionType: KClass<T>): T

Returns the extension of the specified extensionType.

Link copied to clipboard
open override fun uri(path: Any): URI
Link copied to clipboard
open override fun zipTree(zipPath: Any): FileTree