Type Params | Return Type | Name and description |
---|---|---|
|
void |
build(java.lang.String dep) Adds a build dependency in the format 'name:version '. |
|
void |
build(groovy.lang.Closure depSpec) Adds a dev dependency using a configurating closure. |
|
void |
build(org.gradle.api.Action<RustConfigurableDependency> configurator) Add a build dependency via an Gradle Action |
|
void |
call(groovy.lang.Closure cfg) Groovy extension that will pass any configurating closure |
|
void |
compile(java.lang.String dep) Adds a dependency in the format ' name:version '. |
|
void |
compile(groovy.lang.Closure depSpec) Adds a dependency using a configurating closure. |
|
void |
compile(org.gradle.api.Action<RustConfigurableDependency> configurator) Add a dependency via an Gradle Action |
|
void |
configure(groovy.lang.Closure cfg) Configure the handler via a Groovy closure. |
|
void |
configure(org.gradle.api.Action<RustDependencyHandler> cfg) Configure th handler via a Gradle action. |
|
RustDependencyConfiguration |
getBuild() Returns the container will all build dependencies. |
|
RustDependencyConfiguration |
getCompile() Returns the container will all compile dependencies. |
|
java.lang.Iterable<PatchDependency> |
getPatches() Returns the container with all local patches. |
|
java.util.Map<java.lang.String, java.lang.Iterable<ConfigurableDependency>> |
getPatchesAsMap() Map the local patches on a per repository-basis |
|
RustDependencyConfiguration |
getTest() Returns the container will all test dependencies. |
|
void |
patch(java.lang.String name, java.lang.String path) Add a path to a patched dependency. |
|
void |
patch(java.net.URI repoURI, java.lang.String name, java.lang.String path) Add a path to a patched dependency. |
|
void |
patch(groovy.lang.Closure cfg) Add a patched dependency via a configuration closure for a crates.io based crate. |
|
void |
patch(java.net.URI repoURI, groovy.lang.Closure cfg) Add a patched dependency via a configuration closure for a repository that is not crates.io |
|
void |
patch(org.gradle.api.Action<RustConfigurableDependency> cfg) Add a patched dependency via a configurating action for a crates.io based crate. |
|
void |
patch(java.net.URI repoURI, org.gradle.api.Action<RustConfigurableDependency> cfg) Add a patched dependency via a configurating action for a repository that is not crates.io . |
|
void |
test(java.lang.String dep) Adds a dev dependency in the format 'name:version '. |
|
void |
test(groovy.lang.Closure depSpec) Adds a dev dependency using a configurating closure. |
|
void |
test(org.gradle.api.Action<RustConfigurableDependency> configurator) Add a dev dependency via an Gradle Action |
Adds a build
dependency in the format 'name:version
'.
dep
- Dependency Adds a dev
dependency using a configurating closure.
test {* name 'winhttp'
version '1.2.3'
git( 'http://github.com/foo/bar' )
git( 'http://github.com/foo/bar', 'my-branch')
path( 'some/path' )
}*
Add a build
dependency via an Gradle Action
configurator
- Action that will configure a RustConfigurableDependency.Groovy extension that will pass any configurating closure
cfg
- Closure to configure dependency handler. Adds a dependency in the format 'name:version
'.
dep
- Dependency Adds a dependency using a configurating closure.
compile {* name 'winhttp'
version '1.2.3'
git( 'http://github.com/foo/bar' )
git( 'http://github.com/foo/bar', 'my-branch')
path( 'some/path'
}*
Add a dependency via an Gradle Action
configurator
- Action that will configure a RustConfigurableDependency.Configure the handler via a Groovy closure.
cfg
- Closure to configure dependency handler.Configure th handler via a Gradle action.
cfg
- Action
to configure dependency handler. Returns the container will all build dependencies.
In Rust terms, this is the 'build
' dependencies.
Returns the container will all compile dependencies.
Returns the container with all local patches.
In Rust terms this is the patch.crates-io
section.
Map the local patches on a per repository-basis
Returns the container will all test dependencies.
In Rust terms, this is the 'dev
' dependencies.
Add a path to a patched dependency.
name
- Name of dependencypath
- A relative pathAdd a path to a patched dependency.
repoURI
- URI that is used for cratesname
- Name of dependencypath
- A relative path Add a patched dependency via a configuration closure for a crates.io
based crate.
cfg
- Configurating closure Add a patched dependency via a configuration closure for a repository that is
not crates.io
repoURI
- Repository URIcfg
- Configurating closure Add a patched dependency via a configurating action for a crates.io
based crate.
cfg
- Configurating action. Add a patched dependency via a configurating action for a repository that is not crates.io
.
repoURI
- Repository URI.cfg
- Configurating action. Adds a dev
dependency in the format 'name:version
'.
dep
- Dependency Adds a dev
dependency using a configurating closure.
test {* name 'winhttp'
version '1.2.3'
git( 'http://github.com/foo/bar' )
git( 'http://github.com/foo/bar', 'my-branch')
path( 'some/path' )
}*
Add a dev
dependency via an Gradle Action
configurator
- Action that will configure a RustConfigurableDependency.