11<!--
2- Copyright 2016 Google Inc. All Rights Reserved.
2+ Copyright 2016 Google Inc. All Rights Reserved.
33
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
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
77
88 http://www.apache.org/licenses/LICENSE-2.0
99
10- Unless required by applicable law or agreed to in writing, software
11- distributed under the License is distributed on an "AS IS" BASIS,
12- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- See the License for the specific language governing permissions and
14- limitations under the License.
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
1515-->
1616<project >
1717 <modelVersion >4.0.0</modelVersion >
@@ -20,6 +20,22 @@ Copyright 2016 Google Inc. All Rights Reserved.
2020 <groupId >com.example.compute</groupId >
2121 <artifactId >compute-error-reporting</artifactId >
2222
23+ <!-- TODO: Use common parent after fixing checkstyle errors.
24+ https://github.com/GoogleCloudPlatform/java-docs-samples/issues/298
25+ <parent>
26+ <artifactId>doc-samples</artifactId>
27+ <groupId>com.google.cloud</groupId>
28+ <version>1.0.0</version>
29+ <relativePath>../..</relativePath>
30+ </parent>
31+ -->
32+
33+ <properties >
34+ <maven .compiler.target>1.8</maven .compiler.target>
35+ <maven .compiler.source>1.8</maven .compiler.source>
36+ <maven-assembly-plugin-version >2.6</maven-assembly-plugin-version >
37+ </properties >
38+
2339 <dependencies >
2440 <!-- [START dependencies] -->
2541 <dependency >
@@ -33,6 +49,7 @@ Copyright 2016 Google Inc. All Rights Reserved.
3349 <plugins >
3450 <plugin >
3551 <artifactId >maven-assembly-plugin</artifactId >
52+ <version >${maven-assembly-plugin-version} </version >
3653 <executions >
3754 <execution >
3855 <phase >package</phase >
@@ -52,15 +69,6 @@ Copyright 2016 Google Inc. All Rights Reserved.
5269 </descriptorRefs >
5370 </configuration >
5471 </plugin >
55- <plugin >
56- <groupId >org.apache.maven.plugins</groupId >
57- <version >3.3</version >
58- <artifactId >maven-compiler-plugin</artifactId >
59- <configuration >
60- <source >1.8</source >
61- <target >1.8</target >
62- </configuration >
63- </plugin >
6472 </plugins >
6573 </build >
6674</project >
0 commit comments