From 358eb58dd5384dc766d773363b7b7ebde8a8724e Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Wed, 30 Dec 2015 13:26:43 -0600 Subject: [PATCH] Initial commit of Spring Cloud Task project page --- _config.yml | 10 +++---- index.html | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 5 deletions(-) create mode 100644 index.html diff --git a/_config.yml b/_config.yml index a222501f..18b6ef52 100644 --- a/_config.yml +++ b/_config.yml @@ -10,20 +10,20 @@ redcarpet: ### The following properties will change on a project-by-project basis # Context path in the remote website (usually /), will be prepended to absolute URLs for static resources -baseurl: /gh-pages +baseurl: /spring-cloud-task # Name of the project for display in places like page titles -name: Spring Framework +name: Spring Cloud Task # ID of the project in the metadata API at spring.io (if this is not a # valid project ID the javascript widgets in the home page will not work) -project: spring-framework +project: spring-cloud-task # Project github URL -github_repo_url: http://github.com/spring-projects/spring-framework +github_repo_url: https://github.com/spring-cloud/spring-cloud-task # Project forum URL -forum: http://forum.spring.io/forum/spring-projects/container +forum: http://stackoverflow.com/questions/tagged/spring-cloud # If you want to include a custom pom.xml or gradle template set these value to true and add _include files custom_pom_template: false diff --git a/index.html b/index.html new file mode 100644 index 00000000..5f825564 --- /dev/null +++ b/index.html @@ -0,0 +1,83 @@ +--- +# The name of your project +title: Spring Cloud Stream + +badges: + + # Specify your project's twitter handle, if any. Delete if none. + twitter: SpringCloudOSS + + # Customize your project's badges. Delete any entries that do not apply. + custom: + - name: Source (GitHub) + url: https://github.com/spring-cloud/spring-cloud-task + icon: github + + - name: Issues (Waffle) + url: https://waffle.io/spring-cloud/spring-cloud-task + icon: tracking + + - name: CI (Bamboo) + url: https://build.spring.io/browse/SCT + icon: ci + + - name: StackOverflow + url: http://stackoverflow.com/questions/tagged/spring-cloud + icon: stackoverflow +--- + + + + +{% capture parent_link %} +[Spring Cloud]({{ site.projects_site_url }}/spring-cloud) +{% endcapture %} + + +{% capture billboard_description %} + +Spring Cloud Task allows a user to develop and run short lived microservices using Spring Cloud and run them locally, or in the cloud, or even on Spring Cloud Data Flow. Just add `@EnableTask` and run your app as a Spring Boot app (single application context). + +{% endcapture %} + +{% capture main_content %} + + +## Quick Start + +{% include download_widget.md %} + +As long as Spring Cloud Task is on the classpath any Spring Boot application with `@EnableTask` will record the start and finish of the boot application as well as any uncaught exceptions in the configured task repository. Sample application: + +```java +@SpringBootApplication +@EnableTask +public class ExampleApplication { + + @Bean + public CommandLineRunner commandLineRunner() { + return strings -> + System.out.println("Executed at :" + + new SimpleDateFormat().format(new Date())); + } + + public static void main(String[] args) { + SpringApplication.run(ExampleApplication.class, args); + } +} +``` +{% endcapture %} + +{% capture related_resources %} + +### Related Projects + +* [Spring Batch](http://spring.io/spring-batch/) +* [Spring Cloud Data Flow](http://cloud.spring.io/spring-cloud-dataflow/) +* [Spring XD]({{site.projects_site_url}}/spring-xd/) + +{% endcapture %} + + +{% include project_page.html %} +