|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Copyright 2019 Google LLC |
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + Unless required by applicable law or agreed to in writing, software |
| 9 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + See the License for the specific language governing permissions and |
| 12 | + limitations under the License. |
| 13 | +--> |
| 14 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 15 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 16 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 17 | + <modelVersion>4.0.0</modelVersion> |
| 18 | + |
| 19 | + <parent> |
| 20 | + <groupId>com.google.cloud.samples</groupId> |
| 21 | + <artifactId>shared-configuration</artifactId> |
| 22 | + <version>1.0.21</version> |
| 23 | + </parent> |
| 24 | + |
| 25 | + <groupId>com.google.containerregistry</groupId> |
| 26 | + <artifactId>containeranalysis-function</artifactId> |
| 27 | + <version>1.0</version> |
| 28 | + <name>container-analysis-function</name> |
| 29 | + <description>Container Analysis Function</description> |
| 30 | + |
| 31 | + <properties> |
| 32 | + <maven.compiler.target>11</maven.compiler.target> |
| 33 | + <maven.compiler.source>11</maven.compiler.source> |
| 34 | + </properties> |
| 35 | + |
| 36 | + <dependencies> |
| 37 | + <dependency> |
| 38 | + <groupId>com.google.cloud.functions</groupId> |
| 39 | + <artifactId>functions-framework-api</artifactId> |
| 40 | + <version>1.0.1</version> |
| 41 | + <scope>provided</scope> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <dependency> |
| 45 | + <groupId>com.google.cloud</groupId> |
| 46 | + <artifactId>google-cloud-containeranalysis</artifactId> |
| 47 | + </dependency> |
| 48 | + |
| 49 | + <dependency> |
| 50 | + <groupId>com.google.code.gson</groupId> |
| 51 | + <artifactId>gson</artifactId> |
| 52 | + <version>2.8.6</version> |
| 53 | + </dependency> |
| 54 | + |
| 55 | + <dependency> |
| 56 | + <groupId>org.projectlombok</groupId> |
| 57 | + <artifactId>lombok</artifactId> |
| 58 | + <version>1.18.12</version> |
| 59 | + </dependency> |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>junit</groupId> |
| 63 | + <artifactId>junit</artifactId> |
| 64 | + <version>4.13</version> |
| 65 | + <scope>test</scope> |
| 66 | + </dependency> |
| 67 | + |
| 68 | + <dependency> |
| 69 | + <groupId>org.mockito</groupId> |
| 70 | + <artifactId>mockito-core</artifactId> |
| 71 | + <version>3.4.0</version> |
| 72 | + <scope>test</scope> |
| 73 | + </dependency> |
| 74 | + </dependencies> |
| 75 | + |
| 76 | + <dependencyManagement> |
| 77 | + <dependencies> |
| 78 | + <dependency> |
| 79 | + <groupId>com.google.cloud</groupId> |
| 80 | + <artifactId>libraries-bom</artifactId> |
| 81 | + <version>12.0.0</version> |
| 82 | + <type>pom</type> |
| 83 | + <scope>import</scope> |
| 84 | + </dependency> |
| 85 | + </dependencies> |
| 86 | + </dependencyManagement> |
| 87 | + |
| 88 | + <build> |
| 89 | + <plugins> |
| 90 | + <plugin> |
| 91 | + <groupId>com.google.cloud.functions</groupId> |
| 92 | + <artifactId>function-maven-plugin</artifactId> |
| 93 | + <version>0.9.5</version> |
| 94 | + <configuration> |
| 95 | + <functionTarget>com.example.containeranalysis.VulnerabilityFunction</functionTarget> |
| 96 | + <port>8080</port> |
| 97 | + </configuration> |
| 98 | + </plugin> |
| 99 | + </plugins> |
| 100 | + </build> |
| 101 | + |
| 102 | +</project> |
0 commit comments