|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Copyright 2022 Google LLC |
| 4 | +
|
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + you may not use this file except in compliance with the License. |
| 7 | + You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License. |
| 16 | +--> |
| 17 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 18 | + <modelVersion>4.0.0</modelVersion> |
| 19 | + <packaging>war</packaging> |
| 20 | + <version>1.0-SNAPSHOT</version> |
| 21 | + <groupId>com.example.appengine</groupId> |
| 22 | + <artifactId>appengine-datastore-j17</artifactId> |
| 23 | + |
| 24 | + <!-- |
| 25 | + The parent pom defines common style checks and testing strategies for our samples. |
| 26 | + Removing or replacing it should not effect the execution of the samples in anyway. |
| 27 | + --> |
| 28 | + <parent> |
| 29 | + <groupId>com.google.cloud.samples</groupId> |
| 30 | + <artifactId>shared-configuration</artifactId> |
| 31 | + <version>1.2.0</version> |
| 32 | + </parent> |
| 33 | + |
| 34 | + <properties> |
| 35 | + <maven.compiler.target>11</maven.compiler.target> <!-- or 17 to use JDK17 features.--> |
| 36 | + <maven.compiler.source>11</maven.compiler.source> |
| 37 | + </properties> |
| 38 | + |
| 39 | + <dependencies> |
| 40 | + <dependency> |
| 41 | + <groupId>com.google.appengine</groupId> |
| 42 | + <artifactId>appengine-api-1.0-sdk</artifactId> |
| 43 | + <version>2.0.4</version> |
| 44 | + </dependency> |
| 45 | + |
| 46 | + <dependency> |
| 47 | + <groupId>javax.servlet</groupId> |
| 48 | + <artifactId>javax.servlet-api</artifactId> |
| 49 | + <version>3.1.0</version> |
| 50 | + <type>jar</type> |
| 51 | + <scope>provided</scope> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <dependency> |
| 55 | + <groupId>com.google.auto.value</groupId> |
| 56 | + <artifactId>auto-value</artifactId> |
| 57 | + <version>1.9</version> |
| 58 | + <scope>provided</scope> |
| 59 | + </dependency> |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>com.google.auto.value</groupId> |
| 63 | + <artifactId>auto-value-annotations</artifactId> |
| 64 | + <version>1.9</version> |
| 65 | + </dependency> |
| 66 | + |
| 67 | + <dependency> |
| 68 | + <groupId>com.google.code.findbugs</groupId> |
| 69 | + <artifactId>jsr305</artifactId> <!-- @Nullable annotations --> |
| 70 | + <version>3.0.2</version> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <dependency> |
| 74 | + <groupId>com.google.guava</groupId> |
| 75 | + <artifactId>guava</artifactId> |
| 76 | + <version>31.0.1-jre</version> |
| 77 | + </dependency> |
| 78 | + |
| 79 | + <dependency> |
| 80 | + <groupId>joda-time</groupId> |
| 81 | + <artifactId>joda-time</artifactId> |
| 82 | + <version>2.10.13</version> |
| 83 | + </dependency> |
| 84 | + |
| 85 | + <!-- Test Dependencies --> |
| 86 | + <dependency> |
| 87 | + <groupId>junit</groupId> |
| 88 | + <artifactId>junit</artifactId> |
| 89 | + <version>4.13.2</version> |
| 90 | + <scope>test</scope> |
| 91 | + </dependency> |
| 92 | + <dependency> |
| 93 | + <groupId>org.mockito</groupId> |
| 94 | + <artifactId>mockito-all</artifactId> |
| 95 | + <version>1.10.19</version> |
| 96 | + <scope>test</scope> |
| 97 | + </dependency> |
| 98 | + |
| 99 | + <dependency> |
| 100 | + <groupId>com.google.appengine</groupId> |
| 101 | + <artifactId>appengine-testing</artifactId> |
| 102 | + <version>2.0.4</version> |
| 103 | + <scope>test</scope> |
| 104 | + </dependency> |
| 105 | + <dependency> |
| 106 | + <groupId>com.google.appengine</groupId> |
| 107 | + <artifactId>appengine-api-stubs</artifactId> |
| 108 | + <version>2.0.4</version> |
| 109 | + <scope>test</scope> |
| 110 | + </dependency> |
| 111 | + <dependency> |
| 112 | + <groupId>com.google.appengine</groupId> |
| 113 | + <artifactId>appengine-tools-sdk</artifactId> |
| 114 | + <version>2.0.4</version> |
| 115 | + <scope>test</scope> |
| 116 | + </dependency> |
| 117 | + <dependency> |
| 118 | + <groupId>com.google.truth</groupId> |
| 119 | + <artifactId>truth</artifactId> |
| 120 | + <version>1.1.3</version> |
| 121 | + <scope>test</scope> |
| 122 | + </dependency> |
| 123 | + </dependencies> |
| 124 | + |
| 125 | + <build> |
| 126 | + <!-- for hot reload of the web application --> |
| 127 | + <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> |
| 128 | + <plugins> |
| 129 | + <plugin> |
| 130 | + <artifactId>maven-war-plugin</artifactId> |
| 131 | + <version>3.3.1</version> <!-- Needed for JDK17.--> |
| 132 | + <executions> |
| 133 | + <execution> |
| 134 | + <id>default-war</id> |
| 135 | + <phase>package</phase> |
| 136 | + <goals> |
| 137 | + <goal>war</goal> |
| 138 | + </goals> |
| 139 | + </execution> |
| 140 | + </executions> |
| 141 | + </plugin> |
| 142 | + <plugin> |
| 143 | + <groupId>com.google.cloud.tools</groupId> |
| 144 | + <artifactId>appengine-maven-plugin</artifactId> |
| 145 | + <version>2.4.1</version> |
| 146 | + <configuration> |
| 147 | + <projectId>GCLOUD_CONFIG</projectId> |
| 148 | + <version>GCLOUD_CONFIG</version> |
| 149 | + <gcloudMode>beta</gcloudMode> |
| 150 | + <deploy.promote>true</deploy.promote> |
| 151 | + <deploy.stopPreviousVersion>true</deploy.stopPreviousVersion> |
| 152 | + </configuration> |
| 153 | + </plugin> |
| 154 | + |
| 155 | + <plugin> |
| 156 | + <artifactId>maven-compiler-plugin</artifactId> |
| 157 | + <version>3.8.1</version> |
| 158 | + <configuration> |
| 159 | + <annotationProcessorPaths> |
| 160 | + <annotationProcessorPath> |
| 161 | + <groupId>com.google.auto.value</groupId> |
| 162 | + <artifactId>auto-value</artifactId> |
| 163 | + <version>1.9</version> |
| 164 | + </annotationProcessorPath> |
| 165 | + </annotationProcessorPaths> |
| 166 | + </configuration> |
| 167 | + </plugin> |
| 168 | + <plugin> |
| 169 | + <groupId>org.eclipse.jetty</groupId> |
| 170 | + <artifactId>jetty-maven-plugin</artifactId> |
| 171 | + <version>9.4.44.v20210927</version> |
| 172 | + </plugin> |
| 173 | + </plugins> |
| 174 | + </build> |
| 175 | +</project> |
0 commit comments