diff --git a/docs/pom.xml b/docs/pom.xml
index b93b54311..238b06a23 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -6,7 +6,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
pom
Spring Cloud Function Docs
@@ -21,6 +21,7 @@
maven-deploy-plugin
+ 2.8.2
true
diff --git a/docs/src/main/asciidoc/adapters/aws-intro.adoc b/docs/src/main/asciidoc/adapters/aws-intro.adoc
index ce8533603..1424a1307 100644
--- a/docs/src/main/asciidoc/adapters/aws-intro.adoc
+++ b/docs/src/main/asciidoc/adapters/aws-intro.adoc
@@ -17,7 +17,7 @@ Build the sample under `spring-cloud-function-samples/function-sample-aws` and u
Using the AWS command line tools it looks like this:
----
-aws lambda create-function --function-name Uppercase --role arn:aws:iam::[USERID]:role/service-role/[ROLE] --zip-file fileb://function-sample-aws/target/function-sample-aws-1.0.1.BUILD-SNAPSHOT-aws.jar --handler org.springframework.cloud.function.adapter.aws.SpringBootStreamHandler --description "Spring Cloud Function Adapter Example" --runtime java8 --region us-east-1 --timeout 30 --memory-size 1024 --publish
+aws lambda create-function --function-name Uppercase --role arn:aws:iam::[USERID]:role/service-role/[ROLE] --zip-file fileb://function-sample-aws/target/function-sample-aws-2.0.0.BUILD-SNAPSHOT-aws.jar --handler org.springframework.cloud.function.adapter.aws.SpringBootStreamHandler --description "Spring Cloud Function Adapter Example" --runtime java8 --region us-east-1 --timeout 30 --memory-size 1024 --publish
----
The input type for the function in the AWS sample is a Foo with a single property called "value". So you would need this to test it:
diff --git a/docs/src/main/asciidoc/adapters/azure-intro.adoc b/docs/src/main/asciidoc/adapters/azure-intro.adoc
index f6948a729..e73701d50 100644
--- a/docs/src/main/asciidoc/adapters/azure-intro.adoc
+++ b/docs/src/main/asciidoc/adapters/azure-intro.adoc
@@ -19,7 +19,7 @@ The Azure tooling needs to find some JSON configuration files to tell it how to
```
{
- "scriptFile" : "../function-sample-azure-1.0.1.BUILD-SNAPSHOT-azure.jar",
+ "scriptFile" : "../function-sample-azure-2.0.0.BUILD-SNAPSHOT-azure.jar",
"entryPoint" : "example.FooHandler.execute",
"bindings" : [ {
"type" : "httpTrigger",
diff --git a/docs/src/main/asciidoc/adapters/openwhisk-quick-start.adoc b/docs/src/main/asciidoc/adapters/openwhisk-quick-start.adoc
index 12eeb4558..86cc66332 100644
--- a/docs/src/main/asciidoc/adapters/openwhisk-quick-start.adoc
+++ b/docs/src/main/asciidoc/adapters/openwhisk-quick-start.adoc
@@ -28,7 +28,7 @@ dependencies.function: com.example:pof:0.0.1-SNAPSHOT
Copy the openwhisk runner JAR to the working directory (same directory as the properties file):
```
-cp spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/target/spring-cloud-function-adapter-openwhisk-1.0.1.BUILD-SNAPSHOT.jar runner.jar
+cp spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/target/spring-cloud-function-adapter-openwhisk-2.0.0.BUILD-SNAPSHOT.jar runner.jar
```
Generate a m2 repo from the `--thin.dryrun` of the runner JAR with the above properties file:
diff --git a/docs/src/main/asciidoc/ghpages.sh b/docs/src/main/asciidoc/ghpages.sh
index 28c168ac6..6795216e9 100755
--- a/docs/src/main/asciidoc/ghpages.sh
+++ b/docs/src/main/asciidoc/ghpages.sh
@@ -155,7 +155,7 @@ function copy_docs_for_current_version() {
file=${f#docs/target/generated-docs/*}
if ! git ls-files -i -o --exclude-standard --directory | grep -q ^$file$; then
# Not ignored...
- # We want users to access 1.0.1.BUILD-SNAPSHOT/ instead of 1.0.0.RELEASE/spring-cloud.sleuth.html
+ # We want users to access 2.0.0.BUILD-SNAPSHOT/ instead of 1.0.0.RELEASE/spring-cloud.sleuth.html
if [[ "${file}" == "${MAIN_ADOC_VALUE}.html" ]] ; then
# We don't want to copy the spring-cloud-sleuth.html
# we want it to be converted to index.html
@@ -197,7 +197,7 @@ function copy_docs_for_branch() {
local destination=$2
if ! git ls-files -i -o --exclude-standard --directory | grep -q ^${file}$; then
# Not ignored...
- # We want users to access 1.0.1.BUILD-SNAPSHOT/ instead of 1.0.0.RELEASE/spring-cloud.sleuth.html
+ # We want users to access 2.0.0.BUILD-SNAPSHOT/ instead of 1.0.0.RELEASE/spring-cloud.sleuth.html
if [[ ("${file}" == "${MAIN_ADOC_VALUE}.html") || ("${file}" == "${REPO_NAME}.html") ]] ; then
# We don't want to copy the spring-cloud-sleuth.html
# we want it to be converted to index.html
diff --git a/pom.xml b/pom.xml
index d3be48ebf..5eefd283b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,22 +4,21 @@
spring-cloud-function-parent
Spring Cloud Function Parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
pom
org.springframework.cloud
spring-cloud-build
- 1.3.9.RELEASE
+ 2.0.2.RELEASE
1.8
- Ditmars.SR4
- 1.2.2.RELEASE
- 1.0.11.RELEASE
- 1.5.13.RELEASE
+ 2.0.0.RELEASE
+ 1.0.12.RELEASE
+ 2.0.3.RELEASE
spring-cloud-function
Bismuth-SR10
@@ -40,13 +39,6 @@
pom
import
-
- org.springframework.cloud
- spring-cloud-stream-dependencies
- ${spring-cloud-stream.version}
- pom
- import
-
org.springframework.cloud
spring-cloud-task-dependencies
@@ -66,11 +58,9 @@
spring-cloud-function-dependencies
- spring-cloud-stream-binder-servlet
spring-cloud-function-compiler
spring-cloud-function-core
spring-cloud-function-context
- spring-cloud-function-stream
spring-cloud-function-task
spring-cloud-function-web
spring-cloud-starter-function-web
diff --git a/scripts/function-registry.sh b/scripts/function-registry.sh
index 41e95f766..2655daf11 100755
--- a/scripts/function-registry.sh
+++ b/scripts/function-registry.sh
@@ -1,3 +1,3 @@
#!/bin/bash
-java -jar ../spring-cloud-function-compiler/target/spring-cloud-function-compiler-1.0.1.BUILD-SNAPSHOT.jar
+java -jar ../spring-cloud-function-compiler/target/spring-cloud-function-compiler-2.0.0.BUILD-SNAPSHOT.jar
diff --git a/scripts/stream.sh b/scripts/stream.sh
index d194baa13..0d22c78e4 100755
--- a/scripts/stream.sh
+++ b/scripts/stream.sh
@@ -45,7 +45,7 @@ while getopts ":i:s:f:c:o:p:d:" opt; do
esac
done
-java -jar ../spring-cloud-function-samples/function-sample-compiler/target/function-sample-compiler-1.0.1.BUILD-SNAPSHOT.jar\
+java -jar ../spring-cloud-function-samples/function-sample-compiler/target/function-sample-compiler-2.0.0.BUILD-SNAPSHOT.jar\
--management.security.enabled=false\
--server.port=$PORT\
--spring.cloud.function.stream.endpoint=$FUNC\
diff --git a/scripts/task.sh b/scripts/task.sh
index da2e666f4..cc804d1e2 100755
--- a/scripts/task.sh
+++ b/scripts/task.sh
@@ -14,5 +14,5 @@ while getopts ":s:f:c:" opt; do
esac
done
-java -noverify -XX:TieredStopAtLevel=1 -Xss256K -Xms16M -Xmx256M -XX:MaxMetaspaceSize=128M -jar ../spring-cloud-function-task/target/spring-cloud-function-task-1.0.1.BUILD-SNAPSHOT.jar\
+java -noverify -XX:TieredStopAtLevel=1 -Xss256K -Xms16M -Xmx256M -XX:MaxMetaspaceSize=128M -jar ../spring-cloud-function-task/target/spring-cloud-function-task-2.0.0.BUILD-SNAPSHOT.jar\
--lambda.supplier=$SUPP --lambda.function=$FUNC --lambda.consumer=$CONS
diff --git a/scripts/web.sh b/scripts/web.sh
index 0e56824fc..58b3d065c 100755
--- a/scripts/web.sh
+++ b/scripts/web.sh
@@ -20,7 +20,7 @@ while getopts ":s:f:c:p:" opt; do
esac
done
-java -jar ../spring-cloud-function-samples/function-sample-compiler/target/function-sample-compiler-1.0.1.BUILD-SNAPSHOT.jar\
+java -jar ../spring-cloud-function-samples/function-sample-compiler/target/function-sample-compiler-2.0.0.BUILD-SNAPSHOT.jar\
--spring.cloud.function.import.$FUNC.type=$TYPE\
--spring.cloud.function.import.$FUNC.location=file:///tmp/function-registry/$TYPE's'/$FUNC.fun\
--management.security.enabled=false\
diff --git a/spring-cloud-function-adapters/pom.xml b/spring-cloud-function-adapters/pom.xml
index 4b625d2ff..8999ff418 100644
--- a/spring-cloud-function-adapters/pom.xml
+++ b/spring-cloud-function-adapters/pom.xml
@@ -9,7 +9,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
spring-cloud-function-adapter-parent
diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/README.adoc b/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/README.adoc
index f9fad1b62..a80a94233 100644
--- a/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/README.adoc
+++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/README.adoc
@@ -21,7 +21,7 @@ Build the sample under `spring-cloud-function-samples/function-sample-aws` and u
Using the AWS command line tools it looks like this:
----
-aws lambda create-function --function-name Uppercase --role arn:aws:iam::[USERID]:role/service-role/[ROLE] --zip-file fileb://function-sample-aws/target/function-sample-aws-1.0.1.BUILD-SNAPSHOT-aws.jar --handler org.springframework.cloud.function.adapter.aws.SpringBootStreamHandler --description "Spring Cloud Function Adapter Example" --runtime java8 --region us-east-1 --timeout 30 --memory-size 1024 --publish
+aws lambda create-function --function-name Uppercase --role arn:aws:iam::[USERID]:role/service-role/[ROLE] --zip-file fileb://function-sample-aws/target/function-sample-aws-2.0.0.BUILD-SNAPSHOT-aws.jar --handler org.springframework.cloud.function.adapter.aws.SpringBootStreamHandler --description "Spring Cloud Function Adapter Example" --runtime java8 --region us-east-1 --timeout 30 --memory-size 1024 --publish
----
The input type for the function in the AWS sample is a Foo with a single property called "value". So you would need this to test it:
diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/pom.xml b/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/pom.xml
index ef9f9ce3c..086f89bf0 100644
--- a/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/pom.xml
+++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-aws/pom.xml
@@ -12,7 +12,7 @@
org.springframework.cloud
spring-cloud-function-adapter-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/README.adoc b/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/README.adoc
index 86557b73f..bf93ca31a 100644
--- a/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/README.adoc
+++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/README.adoc
@@ -24,7 +24,7 @@ The Azure tooling needs to find some JSON configuration files to tell it how to
```
{
- "scriptFile" : "../function-sample-azure-1.0.1.BUILD-SNAPSHOT-azure.jar",
+ "scriptFile" : "../function-sample-azure-2.0.0.BUILD-SNAPSHOT-azure.jar",
"entryPoint" : "example.FooHandler.execute",
"bindings" : [ {
"type" : "httpTrigger",
diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/pom.xml b/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/pom.xml
index 644bc90d2..833b4c1c0 100644
--- a/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/pom.xml
+++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-azure/pom.xml
@@ -12,7 +12,7 @@
org.springframework.cloud
spring-cloud-function-adapter-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/README.adoc b/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/README.adoc
index 21fc1061c..03fe38d75 100644
--- a/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/README.adoc
+++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/README.adoc
@@ -32,7 +32,7 @@ dependencies.function: com.example:pof:0.0.1-SNAPSHOT
Copy the openwhisk runner JAR to the working directory (same directory as the properties file):
```
-cp spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/target/spring-cloud-function-adapter-openwhisk-1.0.1.BUILD-SNAPSHOT.jar runner.jar
+cp spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/target/spring-cloud-function-adapter-openwhisk-2.0.0.BUILD-SNAPSHOT.jar runner.jar
```
Generate a m2 repo from the `--thin.dryrun` of the runner JAR with the above properties file:
diff --git a/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/pom.xml b/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/pom.xml
index c5e719fb5..841fe712d 100644
--- a/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/pom.xml
+++ b/spring-cloud-function-adapters/spring-cloud-function-adapter-openwhisk/pom.xml
@@ -12,7 +12,7 @@
org.springframework.cloud
spring-cloud-function-adapter-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
diff --git a/spring-cloud-function-compiler/pom.xml b/spring-cloud-function-compiler/pom.xml
index 909125fe7..b5bc7ea39 100644
--- a/spring-cloud-function-compiler/pom.xml
+++ b/spring-cloud-function-compiler/pom.xml
@@ -10,7 +10,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
@@ -26,6 +26,7 @@
commons-collections
commons-collections
+ 3.2.2
org.springframework
diff --git a/spring-cloud-function-compiler/src/main/java/org/springframework/cloud/function/compiler/config/FunctionProxyApplicationListener.java b/spring-cloud-function-compiler/src/main/java/org/springframework/cloud/function/compiler/config/FunctionProxyApplicationListener.java
index 8c22a38c4..be2d62041 100644
--- a/spring-cloud-function-compiler/src/main/java/org/springframework/cloud/function/compiler/config/FunctionProxyApplicationListener.java
+++ b/spring-cloud-function-compiler/src/main/java/org/springframework/cloud/function/compiler/config/FunctionProxyApplicationListener.java
@@ -20,11 +20,11 @@ import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.MutablePropertyValues;
-import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.config.ConstructorArgumentValues;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
+import org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor;
import org.springframework.cloud.function.compiler.ConsumerCompiler;
@@ -42,8 +42,6 @@ import org.springframework.context.support.StaticApplicationContext;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.core.io.Resource;
import org.springframework.util.Assert;
-import org.springframework.util.ClassUtils;
-import org.springframework.util.ReflectionUtils;
/**
* @author Mark Fisher
@@ -134,16 +132,8 @@ public class FunctionProxyApplicationListener
ConfigurationPropertiesBindingPostProcessor post) {
StaticApplicationContext other = new StaticApplicationContext();
other.setEnvironment(context.getEnvironment());
- if (ReflectionUtils.findMethod(ConfigurationPropertiesBindingPostProcessor.class,
- "setBeanFactory", BeanFactory.class) != null) {
- post.setBeanFactory(new DefaultListableBeanFactory());
- post.setEnvironment(context.getEnvironment());
- }
- else {
- String name = "org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata";
- other.registerSingleton(name, ClassUtils.resolveClassName(name, null));
- other.setParent(context);
- }
+ other.registerSingleton(ConfigurationBeanFactoryMetadata.class.getName(), ConfigurationBeanFactoryMetadata.class);
+ other.setParent(context);
post.setApplicationContext(other);
}
diff --git a/spring-cloud-function-context/pom.xml b/spring-cloud-function-context/pom.xml
index e18106fed..57d49f6f0 100644
--- a/spring-cloud-function-context/pom.xml
+++ b/spring-cloud-function-context/pom.xml
@@ -11,7 +11,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
diff --git a/spring-cloud-function-context/src/test/java/org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfigurationTests.java b/spring-cloud-function-context/src/test/java/org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfigurationTests.java
index 809514a69..984d1b479 100644
--- a/spring-cloud-function-context/src/test/java/org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfigurationTests.java
+++ b/spring-cloud-function-context/src/test/java/org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfigurationTests.java
@@ -526,7 +526,7 @@ public class ContextFunctionCatalogAutoConfigurationTests {
}
private void create(Class>[] types, String... props) {
- context = new SpringApplicationBuilder((Object[]) types).properties(props).run();
+ context = new SpringApplicationBuilder((Class[]) types).properties(props).run();
catalog = context.getBean(FunctionCatalog.class);
inspector = context.getBean(FunctionInspector.class);
}
diff --git a/spring-cloud-function-core/pom.xml b/spring-cloud-function-core/pom.xml
index 5fc697fce..b8dc8b992 100644
--- a/spring-cloud-function-core/pom.xml
+++ b/spring-cloud-function-core/pom.xml
@@ -10,7 +10,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
diff --git a/spring-cloud-function-dependencies/pom.xml b/spring-cloud-function-dependencies/pom.xml
index 57469d345..034e13cfb 100644
--- a/spring-cloud-function-dependencies/pom.xml
+++ b/spring-cloud-function-dependencies/pom.xml
@@ -5,11 +5,11 @@
spring-cloud-dependencies-parent
org.springframework.cloud
- 1.3.8.RELEASE
+ 2.0.2.RELEASE
spring-cloud-function-dependencies
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
pom
Spring Cloud Function Dependencies
Spring Cloud Function Dependencies
@@ -25,11 +25,6 @@
spring-cloud-function-core
${project.version}
-
- org.springframework.cloud
- spring-cloud-function-stream
- ${project.version}
-
org.springframework.cloud
spring-cloud-function-compiler
@@ -70,11 +65,6 @@
spring-cloud-function-adapter-openwhisk
${project.version}
-
- org.springframework.cloud
- spring-cloud-stream-binder-servlet
- ${project.version}
-
diff --git a/spring-cloud-function-deployer/pom.xml b/spring-cloud-function-deployer/pom.xml
index cdbd780fe..ca3d58df6 100644
--- a/spring-cloud-function-deployer/pom.xml
+++ b/spring-cloud-function-deployer/pom.xml
@@ -11,7 +11,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
@@ -71,6 +71,7 @@
org.apache.maven.plugins
maven-invoker-plugin
+ 3.0.1
${project.build.directory}/local-repo
diff --git a/spring-cloud-function-deployer/src/it/support/pom.xml b/spring-cloud-function-deployer/src/it/support/pom.xml
index 5e488beab..c71f8ae1e 100644
--- a/spring-cloud-function-deployer/src/it/support/pom.xml
+++ b/spring-cloud-function-deployer/src/it/support/pom.xml
@@ -17,7 +17,7 @@
1.8
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
1.0.10.RELEASE
3.2.0.M1
diff --git a/spring-cloud-function-samples/function-sample-aws/build.gradle b/spring-cloud-function-samples/function-sample-aws/build.gradle
index 03a29db08..74f9a94a2 100644
--- a/spring-cloud-function-samples/function-sample-aws/build.gradle
+++ b/spring-cloud-function-samples/function-sample-aws/build.gradle
@@ -26,7 +26,7 @@ apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot.experimental.thin-launcher'
group = 'io.spring.sample'
-version = '1.0.1.BUILD-SNAPSHOT'
+version = '2.0.0.BUILD-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@ -38,7 +38,7 @@ repositories {
}
ext {
- springCloudFunctionVersion = "1.0.1.BUILD-SNAPSHOT"
+ springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
awsLambdaEventsVersion = "1.2.1"
awsLambdaCoreVersion = "1.1.0"
}
diff --git a/spring-cloud-function-samples/function-sample-aws/pom.xml b/spring-cloud-function-samples/function-sample-aws/pom.xml
index 99b623109..7414eb268 100644
--- a/spring-cloud-function-samples/function-sample-aws/pom.xml
+++ b/spring-cloud-function-samples/function-sample-aws/pom.xml
@@ -5,7 +5,7 @@
io.spring.sample
function-sample-aws
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
function-sample-aws
@@ -25,8 +25,8 @@
1.0.10.RELEASE
2.0.2
3.1.2.RELEASE
- 1.0.1.BUILD-SNAPSHOT
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
example.Config
diff --git a/spring-cloud-function-samples/function-sample-aws/src/main/resources/META-INF/thin.properties b/spring-cloud-function-samples/function-sample-aws/src/main/resources/META-INF/thin.properties
deleted file mode 100644
index 78f563bdc..000000000
--- a/spring-cloud-function-samples/function-sample-aws/src/main/resources/META-INF/thin.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-dependencies.spring-cloud-function-stream: org.springframework.cloud:spring-cloud-function-stream
-dependencies.spring-cloud-stream-binder-servlet: org.springframework.cloud:spring-cloud-stream-binder-servlet
\ No newline at end of file
diff --git a/spring-cloud-function-samples/function-sample-azure/pom.xml b/spring-cloud-function-samples/function-sample-azure/pom.xml
index 92e5dce8a..a96861b91 100644
--- a/spring-cloud-function-samples/function-sample-azure/pom.xml
+++ b/spring-cloud-function-samples/function-sample-azure/pom.xml
@@ -5,7 +5,7 @@
io.spring.sample
function-sample-azure
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
function-sample-azure
@@ -52,7 +52,7 @@
org.springframework.cloud
spring-cloud-function-dependencies
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
pom
import
diff --git a/spring-cloud-function-samples/function-sample-azure/src/main/azure/uppercase/function.json b/spring-cloud-function-samples/function-sample-azure/src/main/azure/uppercase/function.json
index 56313cdc4..f679900f5 100644
--- a/spring-cloud-function-samples/function-sample-azure/src/main/azure/uppercase/function.json
+++ b/spring-cloud-function-samples/function-sample-azure/src/main/azure/uppercase/function.json
@@ -1,5 +1,5 @@
{
- "scriptFile": "../function-sample-azure-1.0.1.BUILD-SNAPSHOT-azure.jar",
+ "scriptFile": "../function-sample-azure-2.0.0.BUILD-SNAPSHOT-azure.jar",
"entryPoint": "example.FooHandler.execute",
"bindings": [
{
diff --git a/spring-cloud-function-samples/function-sample-compiler/build.gradle b/spring-cloud-function-samples/function-sample-compiler/build.gradle
index c5f944384..98eadb92f 100644
--- a/spring-cloud-function-samples/function-sample-compiler/build.gradle
+++ b/spring-cloud-function-samples/function-sample-compiler/build.gradle
@@ -22,7 +22,7 @@ apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot.experimental.thin-launcher'
group = 'io.spring.sample'
-version = '1.0.1.BUILD-SNAPSHOT'
+version = '2.0.0.BUILD-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@ -34,7 +34,7 @@ repositories {
}
ext {
- springCloudFunctionVersion = "1.0.1.BUILD-SNAPSHOT"
+ springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
}
ext['reactor.version'] = "3.1.7.RELEASE"
diff --git a/spring-cloud-function-samples/function-sample-compiler/pom.xml b/spring-cloud-function-samples/function-sample-compiler/pom.xml
index e2c094438..361f8fc5c 100644
--- a/spring-cloud-function-samples/function-sample-compiler/pom.xml
+++ b/spring-cloud-function-samples/function-sample-compiler/pom.xml
@@ -5,7 +5,7 @@
io.spring.sample
function-sample-compiler
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
spring-cloud-function-sample-compiler
Spring Cloud Function Lambda Compiling Support
@@ -19,7 +19,7 @@
1.8
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
Elmhurst.RELEASE
3.1.2.RELEASE
1.0.10.RELEASE
diff --git a/spring-cloud-function-samples/function-sample-pof/build.gradle b/spring-cloud-function-samples/function-sample-pof/build.gradle
index c5f944384..98eadb92f 100644
--- a/spring-cloud-function-samples/function-sample-pof/build.gradle
+++ b/spring-cloud-function-samples/function-sample-pof/build.gradle
@@ -22,7 +22,7 @@ apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot.experimental.thin-launcher'
group = 'io.spring.sample'
-version = '1.0.1.BUILD-SNAPSHOT'
+version = '2.0.0.BUILD-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@ -34,7 +34,7 @@ repositories {
}
ext {
- springCloudFunctionVersion = "1.0.1.BUILD-SNAPSHOT"
+ springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
}
ext['reactor.version'] = "3.1.7.RELEASE"
diff --git a/spring-cloud-function-samples/function-sample-pof/pom.xml b/spring-cloud-function-samples/function-sample-pof/pom.xml
index 6ba118e27..9040ccec5 100644
--- a/spring-cloud-function-samples/function-sample-pof/pom.xml
+++ b/spring-cloud-function-samples/function-sample-pof/pom.xml
@@ -4,7 +4,7 @@
io.spring.sample
function-sample-pof
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
function-sample-pof
Spring Cloud Function Web Support
@@ -21,8 +21,8 @@
UTF-8
1.8
3.1.2.RELEASE
- 1.0.1.BUILD-SNAPSHOT
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
diff --git a/spring-cloud-function-samples/function-sample-pojo/build.gradle b/spring-cloud-function-samples/function-sample-pojo/build.gradle
index 35227ab0c..03e4ad9ec 100644
--- a/spring-cloud-function-samples/function-sample-pojo/build.gradle
+++ b/spring-cloud-function-samples/function-sample-pojo/build.gradle
@@ -22,7 +22,7 @@ apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot.experimental.thin-launcher'
group = 'io.spring.sample'
-version = '1.0.1.BUILD-SNAPSHOT'
+version = '2.0.0.BUILD-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@ -34,7 +34,7 @@ repositories {
}
ext {
- springCloudFunctionVersion = "1.0.1.BUILD-SNAPSHOT"
+ springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
}
ext['reactor.version'] = "3.1.7.RELEASE"
diff --git a/spring-cloud-function-samples/function-sample-pojo/pom.xml b/spring-cloud-function-samples/function-sample-pojo/pom.xml
index 981aeae7a..c5a16b91a 100644
--- a/spring-cloud-function-samples/function-sample-pojo/pom.xml
+++ b/spring-cloud-function-samples/function-sample-pojo/pom.xml
@@ -5,7 +5,7 @@
io.spring.sample
function-sample-pojo
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
function-sample-pojo
Spring Cloud Function Web Support
@@ -19,7 +19,7 @@
1.8
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
1.0.11.RELEASE
diff --git a/spring-cloud-function-samples/function-sample-pojo/src/main/resources/META-INF/thin-stream.properties b/spring-cloud-function-samples/function-sample-pojo/src/main/resources/META-INF/thin-stream.properties
deleted file mode 100644
index 958a4c512..000000000
--- a/spring-cloud-function-samples/function-sample-pojo/src/main/resources/META-INF/thin-stream.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-boms.spring-cloud-dependencies: org.springframework.cloud:spring-cloud-dependencies:Finchley.M8
-exclusions.spring-cloud-function-web: org.springframework.cloud:spring-cloud-starter-function-web
-exclusions.rabbit-http-client: com.rabbitmq:http-client
-dependencies.spring-cloud-function-stream: org.springframework.cloud:spring-cloud-function-stream
-dependencies.spring-cloud-stream-rabbit: org.springframework.cloud:spring-cloud-starter-stream-rabbit
\ No newline at end of file
diff --git a/spring-cloud-function-samples/function-sample-task/build.gradle b/spring-cloud-function-samples/function-sample-task/build.gradle
index 02b5334d3..cfea4ab39 100644
--- a/spring-cloud-function-samples/function-sample-task/build.gradle
+++ b/spring-cloud-function-samples/function-sample-task/build.gradle
@@ -22,7 +22,7 @@ apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot.experimental.thin-launcher'
group = 'io.spring.sample'
-version = '1.0.1.BUILD-SNAPSHOT'
+version = '2.0.0.BUILD-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
@@ -34,7 +34,7 @@ repositories {
}
ext {
- springCloudFunctionVersion = "1.0.1.BUILD-SNAPSHOT"
+ springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
}
ext['reactor.version'] = "3.1.7.RELEASE"
diff --git a/spring-cloud-function-samples/function-sample-task/pom.xml b/spring-cloud-function-samples/function-sample-task/pom.xml
index 4ad6d2126..622dac08e 100644
--- a/spring-cloud-function-samples/function-sample-task/pom.xml
+++ b/spring-cloud-function-samples/function-sample-task/pom.xml
@@ -5,7 +5,7 @@
io.spring.sample
function-sample-task
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
function-sample-task
Spring Cloud Function Task Support
@@ -19,7 +19,7 @@
1.8
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
1.0.10.RELEASE
3.1.2.RELEASE
diff --git a/spring-cloud-function-samples/function-sample/build.gradle b/spring-cloud-function-samples/function-sample/build.gradle
index 9bf4c053e..b6c2a5052 100644
--- a/spring-cloud-function-samples/function-sample/build.gradle
+++ b/spring-cloud-function-samples/function-sample/build.gradle
@@ -34,7 +34,7 @@ repositories {
}
ext {
- springCloudFunctionVersion = "1.0.1.BUILD-SNAPSHOT"
+ springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
}
ext['reactor.version'] = "3.1.7.RELEASE"
diff --git a/spring-cloud-function-samples/function-sample/pom.xml b/spring-cloud-function-samples/function-sample/pom.xml
index 722d61f85..d50915fd1 100644
--- a/spring-cloud-function-samples/function-sample/pom.xml
+++ b/spring-cloud-function-samples/function-sample/pom.xml
@@ -5,7 +5,7 @@
io.spring.sample
function-sample
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
jar
function-sample
Spring Cloud Function Web Support
@@ -19,7 +19,7 @@
1.8
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
3.1.2.RELEASE
1.0.10.RELEASE
diff --git a/spring-cloud-function-samples/pom.xml b/spring-cloud-function-samples/pom.xml
index c9872b22f..e8399cfcd 100644
--- a/spring-cloud-function-samples/pom.xml
+++ b/spring-cloud-function-samples/pom.xml
@@ -9,7 +9,7 @@
org.springframework.cloud
spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
@@ -27,6 +27,7 @@
org.apache.maven.plugins
maven-deploy-plugin
+ 2.8.2
true
diff --git a/spring-cloud-function-stream/.jdk8 b/spring-cloud-function-stream/.jdk8
deleted file mode 100644
index e69de29bb..000000000
diff --git a/spring-cloud-function-stream/pom.xml b/spring-cloud-function-stream/pom.xml
deleted file mode 100644
index 45ebe27c3..000000000
--- a/spring-cloud-function-stream/pom.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
- 4.0.0
-
- spring-cloud-function-stream
- jar
- Spring Cloud Function Stream Support
- Spring Cloud Function Stream Support
-
-
- org.springframework.cloud
- spring-cloud-function-parent
- 1.0.1.BUILD-SNAPSHOT
-
-
-
-
- io.projectreactor
- reactor-core
-
-
- org.springframework.cloud
- spring-cloud-stream
-
-
- org.springframework.boot
- spring-boot-starter-actuator
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
-
- org.springframework.cloud
- spring-cloud-stream-reactive
-
-
- org.springframework.cloud
- spring-cloud-stream-test-support
- test
-
-
- org.springframework.cloud
- spring-cloud-function-core
-
-
- org.springframework.cloud
- spring-cloud-function-context
-
-
- org.springframework.cloud
- spring-cloud-stream-binder-servlet
- true
-
-
- org.springframework.boot
- spring-boot-starter-logging
-
-
- org.springframework.boot
- spring-boot-configuration-processor
- true
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
- org.springframework.boot.experimental
- spring-boot-thin-layout
- ${wrapper.version}
-
-
-
-
-
-
diff --git a/spring-cloud-function-stream/src/main/java/org/springframework/cloud/function/stream/StreamApplication.java b/spring-cloud-function-stream/src/main/java/org/springframework/cloud/function/stream/StreamApplication.java
deleted file mode 100644
index a623e2aad..000000000
--- a/spring-cloud-function-stream/src/main/java/org/springframework/cloud/function/stream/StreamApplication.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2016 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.springframework.cloud.function.stream;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * @author Mark Fisher
- */
-@SpringBootApplication
-public class StreamApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(StreamApplication.class, args);
- }
-}
diff --git a/spring-cloud-function-stream/src/main/java/org/springframework/cloud/function/stream/config/AbstractStreamListeningInvoker.java b/spring-cloud-function-stream/src/main/java/org/springframework/cloud/function/stream/config/AbstractStreamListeningInvoker.java
deleted file mode 100644
index a4741b7e0..000000000
--- a/spring-cloud-function-stream/src/main/java/org/springframework/cloud/function/stream/config/AbstractStreamListeningInvoker.java
+++ /dev/null
@@ -1,239 +0,0 @@
-/*
- * Copyright 2016-2017 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.cloud.function.stream.config;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.Consumer;
-import java.util.function.Function;
-
-import org.reactivestreams.Publisher;
-
-import org.springframework.beans.factory.SmartInitializingSingleton;
-import org.springframework.cloud.function.context.FunctionCatalog;
-import org.springframework.cloud.function.context.catalog.FunctionInspector;
-import org.springframework.cloud.function.context.message.MessageUtils;
-import org.springframework.cloud.stream.converter.CompositeMessageConverterFactory;
-import org.springframework.messaging.Message;
-import org.springframework.messaging.converter.MessageConverter;
-import org.springframework.messaging.support.MessageBuilder;
-
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * @author Dave Syer
- *
- */
-public abstract class AbstractStreamListeningInvoker
- implements SmartInitializingSingleton {
-
- private final FunctionInspector functionInspector;
-
- private final FunctionCatalog functionCatalog;
-
- private final CompositeMessageConverterFactory converterFactory;
-
- private MessageConverter converter;
-
- private static final Object UNCONVERTED = new Object();
-
- private final String defaultRoute;
-
- private final Map processors = new HashMap<>();
-
- private static final FluxMessageProcessor NOENDPOINT = flux -> Flux.empty();
-
- private boolean share;
-
- public AbstractStreamListeningInvoker(FunctionCatalog functionCatalog,
- FunctionInspector functionInspector,
- CompositeMessageConverterFactory converterFactory, String defaultRoute,
- boolean share) {
- this.functionCatalog = functionCatalog;
- this.functionInspector = functionInspector;
- this.converterFactory = converterFactory;
- this.defaultRoute = defaultRoute;
- this.share = share;
- }
-
- @Override
- public void afterSingletonsInstantiated() {
- this.converter = this.converterFactory.getMessageConverterForAllRegistered();
- }
-
- protected Mono consumer(String name, Flux> flux) {
- Consumer> consumer = functionCatalog.lookup(Consumer.class, name);
- flux = flux.publish().refCount(2);
- // The consumer will subscribe to the input flux, so we need to listen separately
- consumer.accept(flux.map(message -> convertInput(consumer).apply(message))
- .filter(transformed -> transformed != UNCONVERTED));
- return flux.then(Mono.empty());
- }
-
- protected Flux> function(String name, Flux> flux) {
- Function, Publisher>> function = functionCatalog.lookup(Function.class, name);
- return flux.publish(values -> {
- Publisher> result = function
- .apply(values.map(message -> convertInput(function).apply(message)));
- if (this.functionInspector.isMessage(function)) {
- result = Flux.from(result)
- .map(message -> MessageUtils.unpack(function, message));
- }
- Flux