Add deprecation notices for features impacted by SC-Deployer

This commit is contained in:
Glenn Renfro
2025-04-28 17:32:41 -04:00
parent dbec2b04b1
commit 1d4e1593ac
15 changed files with 41 additions and 18 deletions

View File

@@ -8,6 +8,8 @@ This section goes into more detail about Spring Cloud Task's integration with Sp
Batch. Tracking the association between a job execution and the task in which it was Batch. Tracking the association between a job execution and the task in which it was
executed as well as remote partitioning through Spring Cloud Deployer are covered in executed as well as remote partitioning through Spring Cloud Deployer are covered in
this section. this section.
NOTE: This feature is now end-of-life and will be removed in a future release.
-- --
[[batch-association]] [[batch-association]]

View File

@@ -57,23 +57,8 @@ NOTE: The `maven.remoteRepositories.springRepo.url` property must be set to the
of the remote repository in which the Spring Boot Uber-jar is located. If not set, there is no remote of the remote repository in which the Spring Boot Uber-jar is located. If not set, there is no remote
repository, so it relies upon the local repository only. repository, so it relies upon the local repository only.
[[stream-integration-launching-sink-dataflow]] NOTE: This feature is now end-of-life and will be removed in a future release.
=== Spring Cloud Data Flow
To create a stream in Spring Cloud Data Flow, you must first register the Task Sink
Application we created. In the following example, we are registering the Processor and
Sink sample applications by using the Spring Cloud Data Flow shell:
[source,bash]
----
app register --name taskSink --type sink --uri maven://io.spring.cloud:tasksink:<version>
app register --name taskProcessor --type processor --uri maven:io.spring.cloud:taskprocessor:<version>
----
The following example shows how to create a stream from the Spring Cloud Data Flow shell:
[source,bash]
stream create foo --definition "http --server.port=9000|taskProcessor|taskSink" --deploy
[[stream-integration-events]] [[stream-integration-events]]
== Spring Cloud Task Events == Spring Cloud Task Events

View File

@@ -26,7 +26,10 @@ import org.springframework.batch.item.ExecutionContext;
* *
* @author Michael Minella * @author Michael Minella
* @since 1.1.0 * @since 1.1.0
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public interface CommandLineArgsProvider { public interface CommandLineArgsProvider {
/** /**

View File

@@ -73,7 +73,10 @@ import org.springframework.util.CollectionUtils;
* *
* @author Michael Minella * @author Michael Minella
* @author Glenn Renfro * @author Glenn Renfro
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class DeployerPartitionHandler implements PartitionHandler, EnvironmentAware, InitializingBean { public class DeployerPartitionHandler implements PartitionHandler, EnvironmentAware, InitializingBean {
/** /**

View File

@@ -56,7 +56,10 @@ import org.springframework.util.Assert;
* </ul> * </ul>
* *
* @author Michael Minella * @author Michael Minella
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class DeployerStepExecutionHandler implements CommandLineRunner { public class DeployerStepExecutionHandler implements CommandLineRunner {
private JobExplorer jobExplorer; private JobExplorer jobExplorer;

View File

@@ -26,7 +26,10 @@ import org.springframework.batch.item.ExecutionContext;
* *
* @author Michael Minella * @author Michael Minella
* @since 1.0.2 * @since 1.0.2
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public interface EnvironmentVariablesProvider { public interface EnvironmentVariablesProvider {
/** /**

View File

@@ -27,7 +27,10 @@ import org.springframework.batch.item.ExecutionContext;
* *
* @author Michael Minella * @author Michael Minella
* @since 1.0.2 * @since 1.0.2
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class NoOpEnvironmentVariablesProvider implements EnvironmentVariablesProvider { public class NoOpEnvironmentVariablesProvider implements EnvironmentVariablesProvider {
/** /**

View File

@@ -26,7 +26,10 @@ import org.springframework.util.Assert;
* *
* @author Michael Minella * @author Michael Minella
* @since 1.1.0 * @since 1.1.0
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class PassThroughCommandLineArgsProvider implements CommandLineArgsProvider { public class PassThroughCommandLineArgsProvider implements CommandLineArgsProvider {
private final List<String> commandLineArgs; private final List<String> commandLineArgs;

View File

@@ -31,7 +31,10 @@ import org.springframework.util.Assert;
* @author Michael Minella * @author Michael Minella
* @author Glenn Renfro * @author Glenn Renfro
* @since 1.1.0 * @since 1.1.0
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class SimpleCommandLineArgsProvider implements CommandLineArgsProvider, TaskExecutionListener { public class SimpleCommandLineArgsProvider implements CommandLineArgsProvider, TaskExecutionListener {
private TaskExecution taskExecution; private TaskExecution taskExecution;

View File

@@ -36,7 +36,10 @@ import org.springframework.core.env.PropertySource;
* *
* @author Michael Minella * @author Michael Minella
* @since 1.0.2 * @since 1.0.2
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class SimpleEnvironmentVariablesProvider implements EnvironmentVariablesProvider { public class SimpleEnvironmentVariablesProvider implements EnvironmentVariablesProvider {
private Environment environment; private Environment environment;

View File

@@ -36,7 +36,10 @@ import org.springframework.util.StringUtils;
* Supports the launching of partitions. * Supports the launching of partitions.
* *
* @author Glenn Renfro * @author Glenn Renfro
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class TaskLauncherHandler implements Runnable { public class TaskLauncherHandler implements Runnable {
private CommandLineArgsProvider commandLineArgsProvider; private CommandLineArgsProvider commandLineArgsProvider;

View File

@@ -22,8 +22,9 @@ package org.springframework.cloud.task.listener;
* *
* @author Michael Minella * @author Michael Minella
* @since 1.2 * @since 1.2
* @deprecated since 3.0 in favor of the default implementations of *
* {@link TaskExecutionListener} * {@link TaskExecutionListener}
* @deprecated since 3.0 in favor of the default implementations of
*/ */
@Deprecated @Deprecated
public class TaskExecutionListenerSupport implements TaskExecutionListener { public class TaskExecutionListenerSupport implements TaskExecutionListener {

View File

@@ -32,7 +32,10 @@ import org.springframework.util.StringUtils;
* TaskLauncherSink to launch the task. * TaskLauncherSink to launch the task.
* *
* @author Glenn Renfro * @author Glenn Renfro
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class TaskLaunchRequest implements Serializable { public class TaskLaunchRequest implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@@ -35,8 +35,10 @@ import org.springframework.util.Assert;
* A sink stream application that launches a tasks. * A sink stream application that launches a tasks.
* *
* @author Glenn Renfro * @author Glenn Renfro
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Deprecated
public class TaskLauncherSink { public class TaskLauncherSink {
private final static Logger logger = LoggerFactory.getLogger(TaskLauncherSink.class); private final static Logger logger = LoggerFactory.getLogger(TaskLauncherSink.class);

View File

@@ -50,12 +50,15 @@ import org.springframework.context.annotation.Import;
* <code>&#064;EnableTaskLauncher</code> annotation. * <code>&#064;EnableTaskLauncher</code> annotation.
* *
* @author Glenn Renfro * @author Glenn Renfro
* @deprecated This feature is now end-of-life and will be removed in a future release. No
* replacement is planned. Please migrate away from using this functionality.
*/ */
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented
@Inherited @Inherited
@Import({ TaskLauncherSink.class }) @Import({ TaskLauncherSink.class })
@Deprecated
public @interface EnableTaskLauncher { public @interface EnableTaskLauncher {
} }