Spring Cloud Task 2.1.0.M1 is now available
We are pleased to announce that Spring Cloud Task 2.1.0M1 is now available on Github and the Pivotal download repository. Many thanks to all of those who contributed to this release.
What’s New?
Spring Cloud Task 2.1.0.M1 is intended to be the version of the framework aligned with Spring Boot 2.1.0. Updates from 2.0.x include:
- Update all dependencies.
- Spring Cloud Task is now enabled through auto-configuration.
- The
exitCode
of aTaskExecution
isnull
when a task is executing. - Spring Cloud Task compiles and runs on Java 8, 9, 10, 11.
Let’s walk through these updates in more detail.
Update to All Dependencies
As stated earlier, this release brings Spring Cloud Task into alignment with Spring Boot 2.1. This includes updating all dependencies.
Spring Cloud Task Is Now Enabled through Auto-configuration
Goodbye to @EnableTask
and hello to auto-configuration! Spring Cloud Task is now enabled through auto-configuration. To use it, add the spring-cloud-starter-task
dependency to your Maven pom or Gradle build file.
Task Execution’s exitCode
Is Null When a Task Executes
In previous releases of Spring Cloud Task, the TaskExecution
returned from Spring Cloud Task methods always showed that a running task’s exitCode
was 0
. Now the TaskExecutions returned from Spring Cloud Task have an exitCode
of null
if the task is still executing.
What Do You Think?
We look forward to your feedback on these new features in Github, StackOverflow, Gitter, or directly via Twitter to @michaelminella or @cppwfs!
Spring Cloud Task Home | Source on GitHub | Reference Documentation