@CompileStatic interface DependencyHandlerSpec
Type Params | Return Type | Name and description |
---|---|---|
|
abstract void |
dependency(String nameOrGav) Declares a dependency. |
|
abstract void |
dependency(String nameOrGav, Closure configurer) Declares and configures a dependency. |
|
abstract void |
enforcedPlatform(Object notation) Declares and configures a dependency on an enforced platform. |
|
abstract void |
enforcedPlatform(Object notation, Action<? super Dependency> action) Declares and configures a dependency on an enforced platform. |
|
abstract void |
module(String nameOrGa, String moduleName) Declares a module dependency. |
|
abstract void |
module(String nameOrGa, String moduleName, Closure configurer) Declares and configures a module dependency. |
|
abstract void |
platform(Object notation) Declares a dependency on a platform. |
|
abstract void |
platform(Object notation, Action<? super Dependency> action) Declares a dependency on a platform. |
Declares a dependency.
Dependencies must be declared using the config.dependencies
block before using this method.
nameOrGav
- the name or the groupId:artifactId
of the dependency found in config.dependencies
,
or regular groupId:artifactId:version
dependency coordinates. Declares and configures a dependency.
Dependencies must be declared using the config.dependencies
block before using this method.
nameOrGav
- the name or the groupId:artifactId
of the dependency found in config.dependencies
,
or regular groupId:artifactId:version
dependency coordinates.configurer
- the closure to use to configure the dependency. Declares and configures a dependency on an enforced platform.
Valid values for notation
are:
java.lang.CharSequence
with format groupId:artifactId:versionjava.util.Map
with group, artifactId, version keysjava.lang.CharSequence
with the name of a platform declared in config.dependencies
notation
- - the coordinates of the platform Declares and configures a dependency on an enforced platform.
Valid values for notation
are:
java.lang.CharSequence
with format groupId:artifactId:versionjava.util.Map
with group, artifactId, version keysjava.lang.CharSequence
with the name of a platform declared in config.dependencies
notation
- - the coordinates of the platformaction
- the dependency configuration block Declares a module dependency.
Dependencies must be declared using the config.dependencies
block before using this method.
nameOrGa
- the name or the groupId:artifactId
of the dependency found in config.dependencies
. Declares and configures a module dependency.
Dependencies must be declared using the config.dependencies
block before using this method.
nameOrGa
- the name or the groupId:artifactId
of the dependency found in config.dependencies
.configurer
- the closure to use to configure the dependency. Declares a dependency on a platform.
Valid values for notation
are:
java.lang.CharSequence
with format groupId:artifactId:versionjava.util.Map
with group, artifactId, version keysjava.lang.CharSequence
with the name of a platform declared in config.dependencies
notation
- - the coordinates of the platform Declares a dependency on a platform.
Valid values for notation
are:
java.lang.CharSequence
with format groupId:artifactId:versionjava.util.Map
with group, artifactId, version keysjava.lang.CharSequence
with the name of a platform declared in config.dependencies
notation
- - the coordinates of the platformaction
- the dependency configuration block