From 25ebf1a99e2ddeeb59ab001a2906e2a92c26c7fc Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Mon, 27 Jul 2020 14:23:58 +0530 Subject: [PATCH] Update uppercase-processor sample to include docker image build --- function-samples/uppercase-processor/pom.xml | 98 ++++++++++++++++--- .../src/main/resources/application.yml | 1 + 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/function-samples/uppercase-processor/pom.xml b/function-samples/uppercase-processor/pom.xml index a86b077..123d832 100644 --- a/function-samples/uppercase-processor/pom.xml +++ b/function-samples/uppercase-processor/pom.xml @@ -17,6 +17,13 @@ + + org.springframework.cloud.fn + function-dependencies + 1.0.0-SNAPSHOT + pom + import + org.springframework.cloud spring-cloud-stream-dependencies @@ -34,7 +41,7 @@ org.springframework.cloud spring-cloud-dependencies - Hoxton.SR1 + Hoxton.SR6 pom import @@ -43,22 +50,73 @@ - + - org.springframework.cloud - spring-cloud-stream-binder-rabbit - + org.springframework.cloud.stream.app + stream-applications-security-common + 3.0.0-SNAPSHOT + + + org.springframework.cloud.stream.app + stream-applications-micrometer-common + 3.0.0-SNAPSHOT + + + io.micrometer + micrometer-registry-influx + + + io.micrometer + micrometer-registry-prometheus + + + io.micrometer + micrometer-registry-wavefront + + + io.micrometer.prometheus + prometheus-rsocket-spring + 0.9.0 + + + io.micrometer + micrometer-registry-datadog + + + io.pivotal.cfenv + java-cfenv-boot + 2.1.2.RELEASE + + + org.springframework.boot + spring-boot-configuration-processor + + + org.springframework.boot + spring-boot-starter-actuator - - - org.springframework.cloud.fn - payload-converter-function - 1.0.0-M2 - org.springframework.boot spring-boot-starter-web + + org.springframework.boot + spring-boot-starter-logging + + + org.springframework.boot + spring-boot-starter-security + + + + org.springframework.cloud + spring-cloud-stream-binder-rabbit + + + org.springframework.boot + spring-boot-starter-test + test + @@ -67,6 +125,24 @@ org.springframework.boot spring-boot-maven-plugin + + com.google.cloud.tools + jib-maven-plugin + 2.0.0 + + + springcloud/openjdk + + + springcloudstream/${project.artifactId} + + 1.0.0-SNAPSHOT + + + + + + diff --git a/function-samples/uppercase-processor/src/main/resources/application.yml b/function-samples/uppercase-processor/src/main/resources/application.yml index 7ddded0..5fe8763 100644 --- a/function-samples/uppercase-processor/src/main/resources/application.yml +++ b/function-samples/uppercase-processor/src/main/resources/application.yml @@ -1,3 +1,4 @@ +management.endpoints.web.exposure.include: health,info,bindings spring.cloud.stream.function.definition: toUpperCase spring.cloud.stream.function.bindings.toUpperCase-in-0: input spring.cloud.stream.function.bindings.toUpperCase-out-0: output