|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>com.baeldung.spring</groupId> |
| 8 | + <artifactId>cloudfunction-aws</artifactId> |
| 9 | + <version>0.0.1-SNAPSHOT</version> |
| 10 | + <packaging>jar</packaging> |
| 11 | + |
| 12 | + <name>cloudfunction-aws</name> |
| 13 | + <description>Demo project for Spring Cloud Function</description> |
| 14 | + |
| 15 | + <parent> |
| 16 | + <groupId>org.springframework.boot</groupId> |
| 17 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 18 | + <version>2.0.4.RELEASE</version> |
| 19 | + <relativePath/> |
| 20 | + </parent> |
| 21 | + |
| 22 | + <properties> |
| 23 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 24 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 25 | + <java.version>1.8</java.version> |
| 26 | + <spring-cloud-function.version>1.0.1.RELEASE</spring-cloud-function.version> |
| 27 | + <aws-lambda-events.version>2.0.2</aws-lambda-events.version> |
| 28 | + </properties> |
| 29 | + |
| 30 | + <dependencies> |
| 31 | + <dependency> |
| 32 | + <groupId>org.springframework.cloud</groupId> |
| 33 | + <artifactId>spring-cloud-function-adapter-aws</artifactId> |
| 34 | + <version>${spring-cloud-function.version}</version> |
| 35 | + </dependency> |
| 36 | + <!-- We don't need spring-cloud-starter-function-web when deploying to AWS--> |
| 37 | + <!-- It is used only for local testing--> |
| 38 | + <dependency> |
| 39 | + <groupId>org.springframework.cloud</groupId> |
| 40 | + <artifactId>spring-cloud-starter-function-web</artifactId> |
| 41 | + <version>1.0.1.RELEASE</version> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>com.amazonaws</groupId> |
| 45 | + <artifactId>aws-lambda-java-events</artifactId> |
| 46 | + <version>${aws-lambda-events.version}</version> |
| 47 | + <scope>provided</scope> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>com.amazonaws</groupId> |
| 51 | + <artifactId>aws-lambda-java-core</artifactId> |
| 52 | + <version>1.1.0</version> |
| 53 | + <scope>provided</scope> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>org.springframework.boot</groupId> |
| 57 | + <artifactId>spring-boot-starter-test</artifactId> |
| 58 | + <scope>test</scope> |
| 59 | + </dependency> |
| 60 | + </dependencies> |
| 61 | + |
| 62 | + <build> |
| 63 | + <plugins> |
| 64 | + <plugin> |
| 65 | + <groupId>org.apache.maven.plugins</groupId> |
| 66 | + <artifactId>maven-deploy-plugin</artifactId> |
| 67 | + <configuration> |
| 68 | + <skip>true</skip> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + <plugin> |
| 72 | + <groupId>org.springframework.boot</groupId> |
| 73 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 74 | + <dependencies> |
| 75 | + <dependency> |
| 76 | + <groupId>org.springframework.boot.experimental</groupId> |
| 77 | + <artifactId>spring-boot-thin-layout</artifactId> |
| 78 | + <version>1.0.10.RELEASE</version> |
| 79 | + </dependency> |
| 80 | + </dependencies> |
| 81 | + </plugin> |
| 82 | + <plugin> |
| 83 | + <groupId>org.apache.maven.plugins</groupId> |
| 84 | + <artifactId>maven-shade-plugin</artifactId> |
| 85 | + <configuration> |
| 86 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 87 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 88 | + <shadedClassifierName>aws</shadedClassifierName> |
| 89 | + </configuration> |
| 90 | + </plugin> |
| 91 | + </plugins> |
| 92 | + </build> |
| 93 | + |
| 94 | +</project> |
0 commit comments