Updated deployer dependencies to 1.2.1.RELEASE
Also updated the docs
This commit is contained in:
committed by
Michael Minella
parent
c7f15f5c8a
commit
68307a9312
8
pom.xml
8
pom.xml
@@ -138,11 +138,11 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<spring-cloud-stream.version>1.2.1.RELEASE</spring-cloud-stream.version>
|
<spring-cloud-stream.version>1.2.1.RELEASE</spring-cloud-stream.version>
|
||||||
<spring-cloud-deployer-spi.version>1.2.1.BUILD-SNAPSHOT</spring-cloud-deployer-spi.version>
|
<spring-cloud-deployer-spi.version>1.2.1.RELEASE</spring-cloud-deployer-spi.version>
|
||||||
<spring-cloud-deployer-local.version>1.2.1.BUILD-SNAPSHOT</spring-cloud-deployer-local.version>
|
<spring-cloud-deployer-local.version>1.2.1.RELEASE</spring-cloud-deployer-local.version>
|
||||||
<spring-cloud-stream-binder-rabbit.version>1.2.0.RELEASE</spring-cloud-stream-binder-rabbit.version>
|
<spring-cloud-stream-binder-rabbit.version>1.2.0.RELEASE</spring-cloud-stream-binder-rabbit.version>
|
||||||
<spring-cloud-deployer-resource-support.version>1.2.1.BUILD-SNAPSHOT</spring-cloud-deployer-resource-support.version>
|
<spring-cloud-deployer-resource-support.version>1.2.1.RELEASE</spring-cloud-deployer-resource-support.version>
|
||||||
<spring-cloud-deployer-resource-maven.version>1.2.1.BUILD-SNAPSHOT</spring-cloud-deployer-resource-maven.version>
|
<spring-cloud-deployer-resource-maven.version>1.2.1.RELEASE</spring-cloud-deployer-resource-maven.version>
|
||||||
<spring-batch.version>3.0.7.RELEASE</spring-batch.version>
|
<spring-batch.version>3.0.7.RELEASE</spring-batch.version>
|
||||||
<commons-logging.version>1.1</commons-logging.version>
|
<commons-logging.version>1.1</commons-logging.version>
|
||||||
<java-ee-api.version>7.0</java-ee-api.version>
|
<java-ee-api.version>7.0</java-ee-api.version>
|
||||||
|
|||||||
@@ -15,10 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.cloud.task.batch.configuration;
|
package org.springframework.cloud.task.batch.configuration;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
|
||||||
|
|
||||||
import org.springframework.batch.core.Job;
|
import org.springframework.batch.core.Job;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||||
@@ -32,7 +28,6 @@ import org.springframework.cloud.task.repository.TaskExplorer;
|
|||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.util.CollectionUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides auto configuration for the {@link TaskBatchExecutionListener}.
|
* Provides auto configuration for the {@link TaskBatchExecutionListener}.
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ Spring Cloud Task itself:
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-task-core</artifactId>
|
<artifactId>spring-cloud-task-core</artifactId>
|
||||||
<version>1.2.0.RELEASE</version>
|
<version>1.2.1.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
[[getting-started-writing-the-code]]
|
[[getting-started-writing-the-code]]
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ $ ./mvnw clean install
|
|||||||
|
|
||||||
[source,shell,indent=2]
|
[source,shell,indent=2]
|
||||||
----
|
----
|
||||||
$ java -jar target/batch-events-1.2.0.RELEASE.jar --spring.cloud.stream.bindings.batch-events.contentType=application/json
|
$ java -jar target/batch-events-1.2.1.RELEASE.jar --spring.cloud.stream.bindings.batch-events.contentType=application/json
|
||||||
----
|
----
|
||||||
|
|
||||||
For example you can listen for specific job execution events on a specified channel with a Spring Cloud Stream Sink
|
For example you can listen for specific job execution events on a specified channel with a Spring Cloud Stream Sink
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ $ mvn clean package
|
|||||||
|
|
||||||
[source,shell,indent=2]
|
[source,shell,indent=2]
|
||||||
----
|
----
|
||||||
$ java -jar target/batch-job-1.2.0.RELEASE.jar
|
$ java -jar target/batch-job-1.2.1.RELEASE.jar
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ $ mvn clean package
|
|||||||
|
|
||||||
[source,shell,indent=2]
|
[source,shell,indent=2]
|
||||||
----
|
----
|
||||||
$ java -jar target/jpa-sample-1.2.1.BUILD-SNAPSHOT.jar
|
$ java -jar target/jpa-sample-1.2.1.RELEASE.jar
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ $ export spring_datasource_url=jdbc:mysql://localhost:3306/<your database>
|
|||||||
$ export spring_datasource_username=<your username>
|
$ export spring_datasource_username=<your username>
|
||||||
$ export spring_datasource_password=<your password>
|
$ export spring_datasource_password=<your password>
|
||||||
$ export spring_datasource_driverClassName=org.mariadb.jdbc.Driver
|
$ export spring_datasource_driverClassName=org.mariadb.jdbc.Driver
|
||||||
$ java -jar target/partitioned-batch-job-1.2.0.RELEASE.jar
|
$ java -jar target/partitioned-batch-job-1.2.1.RELEASE.jar
|
||||||
----
|
----
|
||||||
|
|
||||||
NOTE: This example will use require a MySql RDBMS repository and currently uses the mariadb jdbc driver to connect.
|
NOTE: This example will use require a MySql RDBMS repository and currently uses the mariadb jdbc driver to connect.
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-deployer-local</artifactId>
|
<artifactId>spring-cloud-deployer-local</artifactId>
|
||||||
<version>1.2.0.RELEASE</version>
|
<version>1.2.1.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ $ ./mvnw clean install
|
|||||||
|
|
||||||
[source,shell,indent=2]
|
[source,shell,indent=2]
|
||||||
----
|
----
|
||||||
$ java -jar target/task-events-1.2.0.RELEASE.jar --spring.cloud.stream.bindings.task-events.contentType=application/json
|
$ java -jar target/task-events-1.2.1.RELEASE.jar --spring.cloud.stream.bindings.task-events.contentType=application/json
|
||||||
----
|
----
|
||||||
|
|
||||||
You can listen for the events on the task-events channel with a Spring Cloud Stream Sink
|
You can listen for the events on the task-events channel with a Spring Cloud Stream Sink
|
||||||
|
|||||||
Reference in New Issue
Block a user