From 9a41a078b9d91dff13bb610aea5c2fd75af9eb3f Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 12 Jul 2019 18:59:12 +0200 Subject: [PATCH] Update aws.html --- spring-cloud-function/3.0.0.M1/aws.html | 29 ++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/spring-cloud-function/3.0.0.M1/aws.html b/spring-cloud-function/3.0.0.M1/aws.html index 35394982..6d02dd3f 100644 --- a/spring-cloud-function/3.0.0.M1/aws.html +++ b/spring-cloud-function/3.0.0.M1/aws.html @@ -91,12 +91,10 @@ $(addBlockSwitches);
  • Introduction
  • Notes on JAR Layout
  • Build file setup - - +
  • Upload
  • Type Conversion @@ -147,7 +145,7 @@ $(addBlockSwitches); need to exclude those before you create the JAR you send to AWS. A Lambda application has to be shaded, but a Spring Boot standalone application does not, so you can run the same app using 2 separate jars (as per the sample). The sample app creates 2 jar files, one with an aws -classifier for deploying in Lambda, and one executable (thin) jar that includes spring-cloud-function-web +classifier for deploying in Lambda, and one executable (thin) jar that includes spring-cloud-function-web at runtime. Spring Cloud Function will try and locate a "main class" for you from the JAR file manifest, using the Start-Class attribute (which will be added for you by the Spring Boot tooling if you use the starter parent). If there is no Start-Class in your manifest you can @@ -157,7 +155,7 @@ use an environment variable or system property MAIN_CLASS when you

    If you are not using the functional bean definitions but relying on Spring Boot’s auto-configuration, then additional transformers must be configured as part of the maven-shade-plugin execution.

    -
    +
    <plugin>
     	<groupId>org.apache.maven.plugins</groupId>
    @@ -191,12 +189,13 @@ then additional transformers must be configured as part of the maven-shade-plugi
     

    Build file setup

    +

    In order to run Spring Cloud Function applications on AWS Lambda, you can leverage Maven or Gradle plugins offered by the cloud platform provider.

    -
    -

    Maven

    +
    +

    Maven

    In order to use the adapter plugin for Maven, add the plugin dependency to your pom.xml file:

    @@ -236,11 +235,11 @@ The example of the setup can be found above.

    You can find the entire sample pom.xml file for deploying Spring Cloud Function -applications to AWS Lambda with Maven here.

    +applications to AWS Lambda with Maven here.

    -
    -

    Gradle

    +
    +

    Gradle

    In order to use the adapter plugin for Gradle, add the dependency to your build.gradle file:

    @@ -305,11 +304,11 @@ assemble.dependsOn = [thinJar]

    You can find the entire sample build.gradle file for deploying Spring Cloud Function -applications to AWS Lambda with Gradle here.

    +applications to AWS Lambda with Gradle here.

    +
    -