From 32b0278930d71b79e8a533ed366397eec9fbb650 Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Mon, 21 Nov 2016 16:21:33 -0600 Subject: [PATCH] Updated for deployer updates In the release process of SCDF, it was identified that Spring Cloud Deployer had been upgraded to JDK 1.8 which was not desirable at the given time. As part of the rollback, the deployer implementations provided remained at 1.8, but the SPI was rolled back to 1.7. This commit addresses the difference between the different versions as well as updates the code to use the latest `TaskLauncher` code. --- pom.xml | 10 ++++++---- .../task/launcher/configuration/TaskConfiguration.java | 10 ++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 75dc05a5..ff47aa2c 100755 --- a/pom.xml +++ b/pom.xml @@ -133,11 +133,11 @@ 1.1.0.RELEASE - 1.1.0.RELEASE + 1.1.1.BUILD-SNAPSHOT 1.1.0.RELEASE 1.1.1.RELEASE - 1.1.0.RELEASE - 1.1.0.RELEASE + 1.1.1.BUILD-SNAPSHOT + 1.1.1.BUILD-SNAPSHOT 3.0.7.RELEASE UTF-8 @@ -160,10 +160,12 @@ org.apache.maven.plugins maven-compiler-plugin - 3.3 + 3.5.1 1.7 1.7 + 1.8 + 1.8 diff --git a/spring-cloud-task-stream/src/test/java/org/springframework/cloud/task/launcher/configuration/TaskConfiguration.java b/spring-cloud-task-stream/src/test/java/org/springframework/cloud/task/launcher/configuration/TaskConfiguration.java index fd8f530b..5861c250 100644 --- a/spring-cloud-task-stream/src/test/java/org/springframework/cloud/task/launcher/configuration/TaskConfiguration.java +++ b/spring-cloud-task-stream/src/test/java/org/springframework/cloud/task/launcher/configuration/TaskConfiguration.java @@ -65,6 +65,16 @@ public class TaskConfiguration { return new TaskStatus(LAUNCH_ID, state, null); } + @Override + public void cleanup(String id) { + throw new UnsupportedOperationException("Cleanup is not supported"); + } + + @Override + public void destroy(String appName) { + throw new UnsupportedOperationException("Destroy is not supported"); + } + public List getCommandlineArguments() { return commandlineArguments; }