Add project specific content

This commit is contained in:
Dave Syer
2015-07-10 10:28:31 +01:00
parent bf15ee8a6d
commit 23d8ff4da5
5 changed files with 141 additions and 7 deletions

View File

@@ -10,24 +10,24 @@ redcarpet:
### The following properties will change on a project-by-project basis
# Context path in the remote website (usually /<project>), will be prepended to absolute URLs for static resources
baseurl: /gh-pages
baseurl: /spring-cloud-streams
# Name of the project for display in places like page titles
name: Spring Framework
name: Spring Cloud Streams
# 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-streams
# Project github URL
github_repo_url: http://github.com/spring-projects/spring-framework
github_repo_url: http://github.com/spring-cloud/spring-cloud-streams
# 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
custom_gradle_template: false
custom_pom_template: true
custom_gradle_template: true
### The following properties are constant for most projects

19
_includes/build.gradle Normal file
View File

@@ -0,0 +1,19 @@
buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:0.5.2.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom '{@= groupId @}:spring-cloud-streams-parent:{@= version @}'
}
}
dependencies {
compile '{@= groupId @}:spring-cloud-streams'
compile 'org.springframework.boot:spring-boot-starter-redis'
compile 'org.springframework.xd:spring-xd-messagebus-redis'
}

25
_includes/pom.xml Normal file
View File

@@ -0,0 +1,25 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>{@= groupId @}</groupId>
<artifactId>spring-cloud-streams-parent</artifactId>
<version>{@= version @}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>{@= groupId @}</groupId>
<artifactId>{@= artifactId @}</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.xd</groupId>
<artifactId>spring-xd-messagebus-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
</dependency>
</dependencies>

BIN
img/project-icon-large.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

90
index.html Normal file
View File

@@ -0,0 +1,90 @@
---
# The name of your project
title: Spring Cloud Streams
badges:
# Customize your project's badges. Delete any entries that do not apply.
custom:
- name: Source (GitHub)
url: https://github.com/spring-cloud/spring-cloud-streams
icon: github
- name: StackOverflow
url: http://stackoverflow.com/questions/tagged/spring-cloud
icon: stackoverflow
---
<!DOCTYPE HTML>
<html lang="en-US">
<!-- Specify the parent of this project (or delete if none) to influence the rendering of the breadcrumb -->
{% capture parent_link %}
[Spring Cloud]({{ site.projects_site_url }}/spring-cloud)
{% endcapture %}
{% capture billboard_description %}
Spring Cloud Streams allows a user to develop and run messaging microservices using Spring Integration and run them locally, or in the cloud, or even on Spring XD. Just create `MessageChannels` "input" and/or "output" and add `@EnableChannelBinding` and run your app as a Spring Boot app (single application context). You just need to connect to the physical broker for the bus, which is automatic if the relevant bus implementation is available on the classpath.
{% endcapture %}
{% capture main_content %}
<span id="quick-start"></span>
## Quick Start
{% include download_widget.md %}
As long as Spring Cloud Streams and a Spring XD Message Bus is on the
classpath any Spring Boot application with `@EnableChannelBinding` will bind to an external broker provided by the bus (e.g. redis, rabbit, kafka, depending on the implementation you choose). Sample application:
```java
@SpringBootApplication
@EnableChannelBinding
@ComponentScan(basePackageClasses=ModuleDefinition.class)
public class ModuleApplication {
public static void main(String[] args) throws InterruptedException {
SpringApplication.run(ModuleApplication.class, args);
}
}
@Configuration
public class ModuleDefinition {
@Value("${format}")
private String format;
@Bean
public MessageChannel output() {
return new DirectChannel();
}
@Bean
@InboundChannelAdapter(value = "output", autoStartup = "false", poller = @Poller(fixedDelay = "${fixedDelay}", maxMessagesPerPoll = "1"))
public MessageSource<String> timerMessageSource() {
return () -> new GenericMessage<>(new SimpleDateFormat(format).format(new Date()));
}
}
```
{% endcapture %}
{% capture related_resources %}
### Sample Projects
* [Source](https://github.com/spring-cloud/spring-cloud-streams/tree/master/spring-cloud-streams-samples/source)
* [Sink](https://github.com/spring-cloud/spring-cloud-streams/tree/master/spring-cloud-streams-samples/sink)
* [Transformer](https://github.com/spring-cloud/spring-cloud-streams/tree/master/spring-cloud-streams-samples/transformer)
* [Mashup](https://github.com/spring-cloud/spring-cloud-streams/tree/master/spring-cloud-streams-samples/extended)
{% endcapture %}
{% include project_page.html %}
</html>