Allows specification of cloud targets for the build. This can customize the dependency management or other features to target a given environment.
| Modifiers | Name | Description |
|---|---|---|
protected org.gradle.api.Project |
project |
The build project. |
| Type | Name and description |
|---|---|
Object |
elasticsearchTargetThe target Elasticsearch version configuration; this may be either the version you want or an ElasticsearchTarget enum value which specifies the environment it will be deployed to, in which case the best known version is automatically picked. |
Object |
kafkaTargetThe target Kafka version configuration; this may be either the version you want or a KafkaTarget enum which identifies the environment your project will be deployed to, which auto-selects the best known version. |
String |
zookeeperTargetThe target Zookeeper version configuration; this can be optionally set to fix a specific Zookeeper version or left unspecified in which case it will be auto-configured for the Kafka version in use. |
| Constructor and description |
|---|
CloudExtension
(org.gradle.api.Project project)Construct a new CloudExtension. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
getTargetElasticsearchVersion()Returns the target Elasticsearch version for the configured target. |
|
String |
getTargetKafkaVersion()Returns the target Kafka version for the given target configuration. |
|
String |
getTargetZookeeperVersion()Returns the target Zookeeper version for the given target configuration. |
The target Elasticsearch version configuration; this may be either the version you want or an ElasticsearchTarget enum value which specifies the environment it will be deployed to, in which case the best known version is automatically picked.
The target Kafka version configuration; this may be either the version you want or a KafkaTarget enum which identifies the environment your project will be deployed to, which auto-selects the best known version.
The target Zookeeper version configuration; this can be optionally set to fix a specific Zookeeper version or left unspecified in which case it will be auto-configured for the Kafka version in use.
Construct a new CloudExtension.
project - the project.Returns the target Elasticsearch version for the configured target.
Returns the target Kafka version for the given target configuration.
Returns the target Zookeeper version for the given target configuration.
Copyright © 2019 John Stewart. All rights reserved.