Skip to content

Commit 69a9c2d

Browse files
authored
Clean up of App engine java 11 pom files (GoogleCloudPlatform#1804)
* Update plugin * update to bom
1 parent 3d5bbad commit 69a9c2d

File tree

4 files changed

+34
-38
lines changed

4 files changed

+34
-38
lines changed

appengine-java11/gaeinfo/pom.xml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ Copyright 2019 Google LLC
8181
<build>
8282
<finalName>gaeinfo</finalName>
8383
<plugins>
84+
<plugin>
85+
<groupId>com.google.cloud.tools</groupId>
86+
<artifactId>appengine-maven-plugin</artifactId>
87+
<version>2.2.0</version>
88+
<configuration>
89+
<version>gaeinfo</version>
90+
</configuration>
91+
</plugin>
92+
8493
<plugin>
8594
<groupId>org.apache.maven.plugins</groupId>
8695
<artifactId>maven-war-plugin</artifactId>
@@ -106,29 +115,9 @@ Copyright 2019 Google LLC
106115
</executions>
107116
</plugin>
108117
<plugin>
109-
<artifactId>maven-resources-plugin</artifactId>
110-
<version>2.7</version>
111-
<executions>
112-
<execution>
113-
<id>copy-resources</id>
114-
<phase>install</phase>
115-
<goals>
116-
<goal>copy-resources</goal>
117-
</goals>
118-
<configuration>
119-
<outputDirectory>${project.build.directory}/appengine-staging/cprof</outputDirectory>
120-
</configuration>
121-
</execution>
122-
</executions>
123-
</plugin>
124-
125-
<plugin>
126-
<groupId>com.google.cloud.tools</groupId>
127-
<artifactId>appengine-maven-plugin</artifactId>
128-
<version>2.0.0</version>
129-
<configuration>
130-
<version>gaeinfo</version>
131-
</configuration>
118+
<groupId>org.eclipse.jetty</groupId>
119+
<artifactId>jetty-maven-plugin</artifactId>
120+
<version>9.4.2.v20170220</version>
132121
</plugin>
133122
</plugins>
134123

appengine-java11/guestbook-cloud-firestore/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
Dependent-jars are created and added to
3939
${project.build.directory}/appengine-staging -->
4040

41-
<!-- [START gae_java11_firestore_pom] -->
4241
<!-- Using libraries-bom to manage versions.
4342
See https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM -->
4443
<dependencyManagement>
@@ -59,7 +58,6 @@
5958
<artifactId>google-cloud-firestore</artifactId>
6059
<scope>provided</scope>
6160
</dependency>
62-
<!-- [END gae_java11_firestore_pom] -->
6361

6462
<!-- Dependency needs to be locally install from directory -->
6563
<!-- `java-docs-samples/appengine-java11/appengine-simple-jetty-main' -->
@@ -89,9 +87,7 @@
8987
<artifactId>jstl</artifactId>
9088
<version>1.2</version>
9189
</dependency>
92-
<!-- [START gae_java11_firestore_pom] -->
9390
</dependencies>
94-
<!-- [END gae_java11_firestore_pom] -->
9591
<build>
9692
<finalName>guestbook</finalName>
9793
<plugins>

appengine-java11/micronaut-helloworld/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,16 @@
172172
<arg>-parameters</arg>
173173
</compilerArgs>
174174
<annotationProcessorPaths>
175-
<path>
176-
<groupId>io.micronaut</groupId>
177-
<artifactId>micronaut-inject-java</artifactId>
178-
<version>1.1.0</version>
179-
</path>
180-
<path>
181-
<groupId>io.micronaut</groupId>
182-
<artifactId>micronaut-validation</artifactId>
183-
<version>1.1.0</version>
184-
</path>
175+
<path>
176+
<groupId>io.micronaut</groupId>
177+
<artifactId>micronaut-inject-java</artifactId>
178+
<version>1.1.0</version>
179+
</path>
180+
<path>
181+
<groupId>io.micronaut</groupId>
182+
<artifactId>micronaut-validation</artifactId>
183+
<version>1.1.0</version>
184+
</path>
185185
</annotationProcessorPaths>
186186
</configuration>
187187
<executions>

appengine-java11/spanner/pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@
3838
<maven.compiler.source>11</maven.compiler.source>
3939
</properties>
4040

41+
<dependencyManagement>
42+
<dependencies>
43+
<dependency>
44+
<groupId>com.google.cloud</groupId>
45+
<artifactId>libraries-bom</artifactId>
46+
<version>3.0.0</version>
47+
<type>pom</type>
48+
<scope>import</scope>
49+
</dependency>
50+
</dependencies>
51+
</dependencyManagement>
52+
4153
<!-- All dependencies are scoped as provided.
4254
Dependent-jars are created and added to
4355
${project.build.directory}/appengine-staging -->
@@ -55,7 +67,6 @@
5567
<dependency>
5668
<groupId>com.google.cloud</groupId>
5769
<artifactId>google-cloud-spanner</artifactId>
58-
<version>1.45.0</version>
5970
<scope>provided</scope>
6071
</dependency>
6172

0 commit comments

Comments
 (0)