From 0aaea05a4b5e3e3d9f60bcb69fd10bc7512ccfa2 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 26 Jan 2017 14:28:15 +0100 Subject: [PATCH] Add Reactor Netty and WebFlux Starters These starters bring the Spring WebFlux experience to Boot. By default, the Reactor Netty web server is chosen. --- spring-boot-dependencies/pom.xml | 14 +++++- spring-boot-starters/pom.xml | 2 + .../spring-boot-starter-reactor-netty/pom.xml | 26 ++++++++++ .../main/resources/META-INF/spring.provides | 1 + .../spring-boot-starter-webflux/pom.xml | 47 +++++++++++++++++++ .../main/resources/META-INF/spring.provides | 1 + 6 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 spring-boot-starters/spring-boot-starter-reactor-netty/pom.xml create mode 100644 spring-boot-starters/spring-boot-starter-reactor-netty/src/main/resources/META-INF/spring.provides create mode 100644 spring-boot-starters/spring-boot-starter-webflux/pom.xml create mode 100644 spring-boot-starters/spring-boot-starter-webflux/src/main/resources/META-INF/spring.provides diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 0d720e1cbd..1410402be7 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -453,7 +453,7 @@ org.springframework.boot - spring-boot-starter-undertow + spring-boot-starter-jta-narayana 2.0.0.BUILD-SNAPSHOT @@ -483,7 +483,7 @@ org.springframework.boot - spring-boot-starter-jta-narayana + spring-boot-starter-reactor-netty 2.0.0.BUILD-SNAPSHOT @@ -527,6 +527,11 @@ spring-boot-starter-tomcat 2.0.0.BUILD-SNAPSHOT + + org.springframework.boot + spring-boot-starter-undertow + 2.0.0.BUILD-SNAPSHOT + org.springframework.boot spring-boot-starter-validation @@ -537,6 +542,11 @@ spring-boot-starter-web 2.0.0.BUILD-SNAPSHOT + + org.springframework.boot + spring-boot-starter-webflux + 2.0.0.BUILD-SNAPSHOT + org.springframework.boot spring-boot-starter-websocket diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index 1cd0f43dfd..cac5277543 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -56,6 +56,7 @@ spring-boot-starter-mustache spring-boot-starter-actuator spring-boot-starter-parent + spring-boot-starter-reactor-netty spring-boot-starter-security spring-boot-starter-social-facebook spring-boot-starter-social-twitter @@ -66,6 +67,7 @@ spring-boot-starter-undertow spring-boot-starter-validation spring-boot-starter-web + spring-boot-starter-webflux spring-boot-starter-websocket spring-boot-starter-web-services diff --git a/spring-boot-starters/spring-boot-starter-reactor-netty/pom.xml b/spring-boot-starters/spring-boot-starter-reactor-netty/pom.xml new file mode 100644 index 0000000000..bfc2601e71 --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-reactor-netty/pom.xml @@ -0,0 +1,26 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starters + 2.0.0.BUILD-SNAPSHOT + + spring-boot-starter-reactor-netty + Spring Boot Reactor Netty Starter + Starter for using Reactor Netty as the embedded reactive HTTP server. + http://projects.spring.io/spring-boot/ + + Pivotal Software, Inc. + http://www.spring.io + + + ${basedir}/../.. + + + + io.projectreactor.ipc + reactor-netty + + + diff --git a/spring-boot-starters/spring-boot-starter-reactor-netty/src/main/resources/META-INF/spring.provides b/spring-boot-starters/spring-boot-starter-reactor-netty/src/main/resources/META-INF/spring.provides new file mode 100644 index 0000000000..6aaea8ae60 --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-reactor-netty/src/main/resources/META-INF/spring.provides @@ -0,0 +1 @@ +provides: reactor-netty \ No newline at end of file diff --git a/spring-boot-starters/spring-boot-starter-webflux/pom.xml b/spring-boot-starters/spring-boot-starter-webflux/pom.xml new file mode 100644 index 0000000000..208380826e --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-webflux/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starters + 2.0.0.BUILD-SNAPSHOT + + spring-boot-starter-webflux + Spring Boot WebFlux Starter + Starter for building WebFlux applications using Spring Framework's + Reactive Web support + http://projects.spring.io/spring-boot/ + + Pivotal Software, Inc. + http://www.spring.io + + + ${basedir}/../.. + + + + org.springframework.boot + spring-boot-starter + + + org.springframework.boot + spring-boot-starter-reactor-netty + + + com.fasterxml.jackson.core + jackson-databind + + + org.hibernate + hibernate-validator + + + org.springframework + spring-web + + + org.springframework + spring-webflux + + + diff --git a/spring-boot-starters/spring-boot-starter-webflux/src/main/resources/META-INF/spring.provides b/spring-boot-starters/spring-boot-starter-webflux/src/main/resources/META-INF/spring.provides new file mode 100644 index 0000000000..9c0d58c173 --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-webflux/src/main/resources/META-INF/spring.provides @@ -0,0 +1 @@ +provides: spring-webflux \ No newline at end of file