Package org.gradle.api
@NonNullApi
package org.gradle.api
Gradle's build language API, which is available from your build files. Location of the main interfaces involved in build scripts.
-
ClassDescriptionAction<T>Performs some action against objects of type T.Allows specification of configuration for some action.An
AntBuilder
allows you to use Ant from your build script.Represents the normal Ant message priorities.ABuildable
represents an artifact or set of artifacts which are built by one or moreTask
instances.AComponentSpec
that is directlyBuildable
via a specified task.ABuildCancelledException
is thrown when a build is interrupted due to cancellation request.AComponentSpec
that is directly checkable via a specified task.ACircularReferenceException
is thrown if circular references exists between tasks, the project evaluation order or the project dependsOn order.DefaultTask
is the standardTask
implementation.Types can implement this interface when they provide a human-readable display name.ADomainObjectCollection
is a specialisedCollection
that adds the ability to receive modification notifications and use live filtered sub collections.APolymorphicDomainObjectContainer
that can be extended at runtime to create elements of new types.Indicates that the annotated member code was generated.GradleException
is the base class of all exceptions thrown by Gradle.AGradleScriptException
is thrown when an exception occurs in the compilation or execution of a script.Marks a SAM interface as a target for lambda expressions / closures where the single parameter is passed as the implicit receiver of the invocation (this
in Kotlin,delegate
in Groovy) as if the lambda expression was an extension method of the parameter type.This exceptions is thrown, if a dependency is declared with a illegal notation.Indicates that a feature is incubating.AInvalidUserCodeException
is thrown when user-provided code cannot be executed.AInvalidUserDataException
is thrown, if a user is providing illegal data for the build.Defines an action that is applied to objects of typeIsolatedAction
, with each target getting its own isolated action instance.An enumeration of Java versions.Types can implement this interface and use the embeddedNamed.Namer
implementation, to satisfy API that calls for a namer.An implementation of the namer interface for objects implementing the named interface.ANamedDomainObjectCollection
represents a collection of objects that have an inherent, constant, name.Schema of named domain object collections.Schema of a named domain object.A named domain object container is a specialization ofNamedDomainObjectSet
that adds the ability to create instances of the element type.A factory for named objects of typeT
.A specialization ofNamedDomainObjectCollection
that also implementsList
.Provides a domain object of the given type.A specialization ofNamedDomainObjectCollection
that also implementsSet
and orders objects by their inherent name.Namer<T>A namer is capable of providing a name based on some inherent characteristic of an object.A comparator implementation based on the names returned by the given namer.Indicates that the type, when DSL enhanced, does not support extensibility.Marks a type or a whole package as providing a non-null API by default.An enumeration for describing validation policies for file paths.Plugin<T>APlugin
represents an extension to Gradle.ANamedDomainObjectContainer
that allows you to create objects with different types.This interface is the main API you use to interact with Gradle from your build file.Indicates a problem that occurs during project configuration.AnProjectEvaluationListener
is notified when a project is evaluated.ProjectState
provides information about the execution state of a project.ARule
represents some action to perform when an unknown domain object is referenced.This interface is implemented by all Gradle Groovy DSL scripts to add in some Gradle-specific methods.Marks interface that works with overloaded Kotlin assignment.ATask
represents a single atomic piece of work for a build, such as compiling classes or generating javadoc.Deprecated.ATransformer
transforms objects of type.UncheckedIOException
is used to wrap anIOException
into an unchecked exception.AUnknownDomainObjectException
is the super class of all exceptions thrown when a given domain object cannot be located.AnUnknownProjectException
is thrown when a project referenced by path cannot be found.AnUnknownTaskException
is thrown when a task referenced by path cannot be found.Provides various ways to access the content of an XML document.
Named.Namer.INSTANCE
instead (sinceTask
now extendsNamed
).