Spring Cloud Task modules are added. (#3675)
* Spring Cloud Task modules are added. * Unnecessary files are removed. * All Sysout are replaced by Logger from Util. * class name is fixed in Logger. * Spring cloud task batch module POM updated with dependencies from Maven Central. * Links are removed and unnecessary comments are removed from POM.
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
package com.baeldung.SpringCloudTaskFinal;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.task.launcher.annotation.EnableTaskLauncher;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableTaskLauncher
|
||||
public class SpringCloudTaskSinkApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(
|
||||
SpringCloudTaskSinkApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.baeldung.SpringCloudTaskFinal;
|
||||
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
import org.springframework.cloud.deployer.spi.task.TaskLauncher;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
|
||||
@Configuration
|
||||
public class TaskSinkConfiguration {
|
||||
|
||||
@Bean
|
||||
public TaskLauncher taskLauncher() {
|
||||
return mock(TaskLauncher.class);
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
maven.remoteRepositories.springRepo.url=https://repo.spring.io/libs-snapshot
|
||||
Reference in New Issue
Block a user