GeezerVison is showing github.com — Move plugin version definitions to properties. · xiaowei2008/java-docs-samples@3092446
File treeExpand file treeCollapse file tree Open diff view settings serviceaccount-appengine-sample
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: appengine/analytics/pom.xml +6-9Lines changed: 6 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 | <relativePath>../..</relativePath> | 28 | 28 | </parent> | 29 | 29 | <!-- Parent POM defines ${appengine.sdk.version} (updates frequently). --> | | 30 | + | | 31 | + <properties> | | 32 | + <maven.compiler.target>1.7</maven.compiler.target> | | 33 | + <maven.compiler.source>1.7</maven.compiler.source> | | 34 | + </properties> | | 35 | + | 30 | 36 | <dependencies> | 31 | 37 | <dependency> | 32 | 38 | <groupId>com.google.appengine</groupId> | | 55 | 61 | <artifactId>appengine-maven-plugin</artifactId> | 56 | 62 | <version>${appengine.sdk.version}</version> | 57 | 63 | </plugin> | 58 | | - <plugin> | 59 | | - <groupId>org.apache.maven.plugins</groupId> | 60 | | - <version>3.3</version> | 61 | | - <artifactId>maven-compiler-plugin</artifactId> | 62 | | - <configuration> | 63 | | - <source>1.7</source> | 64 | | - <target>1.7</target> | 65 | | - </configuration> | 66 | | - </plugin> | 67 | 64 | </plugins> | 68 | 65 | </build> | 69 | 66 | </project> |
Collapse file Copy file name to clipboardExpand all lines: appengine/appidentity/pom.xml +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 | <relativePath>../..</relativePath> | 28 | 28 | </parent> | 29 | 29 |
| | 30 | + <properties> | | 31 | + <gcloud-maven-plugin-version>2.0.9.101.v20160316</gcloud-maven-plugin-version> | | 32 | + </properties> | | 33 | + | 30 | 34 | <dependencies> | 31 | 35 | <dependency> | 32 | 36 | <groupId>com.google.appengine</groupId> | | 96 | 100 | <plugin> | 97 | 101 | <groupId>com.google.appengine</groupId> | 98 | 102 | <artifactId>gcloud-maven-plugin</artifactId> | 99 | | - <version>2.0.9.101.v20160316</version> | | 103 | + <version>${gcloud-maven-plugin-version}</version> | 100 | 104 | </plugin> | 101 | 105 | </plugins> | 102 | 106 | </build> | |
Collapse file Copy file name to clipboardExpand all lines: compute/error-reporting/pom.xml +26-18Lines changed: 26 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <!-- | 2 | | -Copyright 2016 Google Inc. All Rights Reserved. | | 2 | + Copyright 2016 Google Inc. All Rights Reserved. | 3 | 3 |
| 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 | 7 | 7 |
| 8 | 8 | http://www.apache.org/licenses/LICENSE-2.0 | 9 | 9 |
| 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. | 15 | 15 | --> | 16 | 16 | <project> | 17 | 17 | <modelVersion>4.0.0</modelVersion> | @@ -20,6 +20,22 @@ Copyright 2016 Google Inc. All Rights Reserved. | 20 | 20 | <groupId>com.example.compute</groupId> | 21 | 21 | <artifactId>compute-error-reporting</artifactId> | 22 | 22 |
| | 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 | + | 23 | 39 | <dependencies> | 24 | 40 | <!-- [START dependencies] --> | 25 | 41 | <dependency> | @@ -33,6 +49,7 @@ Copyright 2016 Google Inc. All Rights Reserved. | 33 | 49 | <plugins> | 34 | 50 | <plugin> | 35 | 51 | <artifactId>maven-assembly-plugin</artifactId> | | 52 | + <version>${maven-assembly-plugin-version}</version> | 36 | 53 | <executions> | 37 | 54 | <execution> | 38 | 55 | <phase>package</phase> | @@ -52,15 +69,6 @@ Copyright 2016 Google Inc. All Rights Reserved. | 52 | 69 | </descriptorRefs> | 53 | 70 | </configuration> | 54 | 71 | </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> | 64 | 72 | </plugins> | 65 | 73 | </build> | 66 | 74 | </project> |
Collapse file Copy file name to clipboardExpand all lines: compute/sendgrid/pom.xml +26-18Lines changed: 26 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <!-- | 2 | | -Copyright 2016 Google Inc. All Rights Reserved. | | 2 | + Copyright 2016 Google Inc. All Rights Reserved. | 3 | 3 |
| 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 | 7 | 7 |
| 8 | 8 | http://www.apache.org/licenses/LICENSE-2.0 | 9 | 9 |
| 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. | 15 | 15 | --> | 16 | 16 | <project> | 17 | 17 | <modelVersion>4.0.0</modelVersion> | @@ -20,6 +20,22 @@ Copyright 2016 Google Inc. All Rights Reserved. | 20 | 20 | <groupId>com.example.compute</groupId> | 21 | 21 | <artifactId>compute-sendgrid</artifactId> | 22 | 22 |
| | 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 | + | 23 | 39 | <dependencies> | 24 | 40 | <!-- [START dependencies] --> | 25 | 41 | <dependency> | @@ -33,6 +49,7 @@ Copyright 2016 Google Inc. All Rights Reserved. | 33 | 49 | <plugins> | 34 | 50 | <plugin> | 35 | 51 | <artifactId>maven-assembly-plugin</artifactId> | | 52 | + <version>${maven-assembly-plugin-version}</version> | 36 | 53 | <executions> | 37 | 54 | <execution> | 38 | 55 | <phase>package</phase> | @@ -52,15 +69,6 @@ Copyright 2016 Google Inc. All Rights Reserved. | 52 | 69 | </descriptorRefs> | 53 | 70 | </configuration> | 54 | 71 | </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> | 64 | 72 | </plugins> | 65 | 73 | </build> | 66 | 74 | </project> |
Collapse file Copy file name to clipboardExpand all lines: java-repo-tools/pom.xml +15-5Lines changed: 15 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,6 +24,16 @@ limitations under the License. | 24 | 24 | <properties> | 25 | 25 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | 26 | 26 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | | 27 | + <codehaus-versions-maven-plugin-version>2.2</codehaus-versions-maven-plugin-version> | | 28 | + <jacoco-maven-plugin-version>0.7.6.201602180812</jacoco-maven-plugin-version> | | 29 | + <maven-clean-plugin-version>3.0.0</maven-clean-plugin-version> | | 30 | + <maven-checkstyle-plugin-version>2.17</maven-checkstyle-plugin-version> | | 31 | + <maven-deploy-plugin-version>2.8.2</maven-deploy-plugin-version> | | 32 | + <maven-failsafe-plugin-version>2.19.1</maven-failsafe-plugin-version> | | 33 | + <maven-install-plugin-version>2.5.2</maven-install-plugin-version> | | 34 | + <maven-resources-plugin-version>2.7</maven-resources-plugin-version> | | 35 | + <maven-site-plugin-version>3.5.1</maven-site-plugin-version> | | 36 | + <maven-surefire-plugin-version>2.19.1</maven-surefire-plugin-version> | 27 | 37 | </properties> | 28 | 38 |
| 29 | 39 | <prerequisites> | @@ -40,7 +50,7 @@ limitations under the License. | 40 | 50 | <!-- Unit tests --> | 41 | 51 | <groupId>org.apache.maven.plugins</groupId> | 42 | 52 | <artifactId>maven-surefire-plugin</artifactId> | 43 | | - <version>2.19.1</version> | | 53 | + <version>${maven-surefire-plugin-version}</version> | 44 | 54 | <configuration> | 45 | 55 | <trimStackTrace>false</trimStackTrace> | 46 | 56 | </configuration> | @@ -49,7 +59,7 @@ limitations under the License. | 49 | 59 | <!-- Integration / system tests --> | 50 | 60 | <groupId>org.apache.maven.plugins</groupId> | 51 | 61 | <artifactId>maven-failsafe-plugin</artifactId> | 52 | | - <version>2.19.1</version> | | 62 | + <version>${maven-failsafe-plugin-version}</version> | 53 | 63 | <executions> | 54 | 64 | <execution> | 55 | 65 | <goals> | @@ -62,7 +72,7 @@ limitations under the License. | 62 | 72 | <plugin> | 63 | 73 | <groupId>org.apache.maven.plugins</groupId> | 64 | 74 | <artifactId>maven-checkstyle-plugin</artifactId> | 65 | | - <version>2.17</version> | | 75 | + <version>${maven-checkstyle-plugin-version}</version> | 66 | 76 | <configuration> | 67 | 77 | <configLocation>google-checks.xml</configLocation> | 68 | 78 | <consoleOutput>true</consoleOutput> | @@ -78,12 +88,12 @@ limitations under the License. | 78 | 88 | <plugin> | 79 | 89 | <groupId>org.codehaus.mojo</groupId> | 80 | 90 | <artifactId>versions-maven-plugin</artifactId> | 81 | | - <version>2.2</version> | | 91 | + <version>${codehaus-versions-maven-plugin-version}</version> | 82 | 92 | </plugin> | 83 | 93 | <plugin> | 84 | 94 | <groupId>org.jacoco</groupId> | 85 | 95 | <artifactId>jacoco-maven-plugin</artifactId> | 86 | | - <version>0.7.6.201602180812</version> | | 96 | + <version>${jacoco-maven-plugin-version}</version> | 87 | 97 | <executions> | 88 | 98 | <execution> | 89 | 99 | <goals> | |
Collapse file Copy file name to clipboardExpand all lines: managed_vms/analytics/pom.xml +27-15Lines changed: 27 additions & 15 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -<?xml version="1.0" encoding="UTF-8"?> | 2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | | 1 | +<!-- | | 2 | + Copyright 2016 Google Inc. All Rights Reserved. | | 3 | +
| | 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 | +
| | 8 | + http://www.apache.org/licenses/LICENSE-2.0 | | 9 | +
| | 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. | | 15 | +--> | | 16 | +<project> | 4 | 17 | <modelVersion>4.0.0</modelVersion> | 5 | 18 | <packaging>war</packaging> | 6 | 19 | <version>1.0-SNAPSHOT</version> | | 14 | 27 | <relativePath>../..</relativePath> | 15 | 28 | </parent> | 16 | 29 |
| | 30 | + <properties> | | 31 | + <maven.compiler.target>1.8</maven.compiler.target> | | 32 | + <maven.compiler.source>1.8</maven.compiler.source> | | 33 | + <maven-war-plugin-version>2.6</maven-war-plugin-version> | | 34 | + <gcloud-maven-plugin-version>2.0.9.106.v20160420</gcloud-maven-plugin-version> | | 35 | + <jetty-maven-plugin-version>9.3.7.v20160115</jetty-maven-plugin-version> | | 36 | + </properties> | | 37 | + | 17 | 38 | <dependencies> | 18 | 39 | <dependency> | 19 | 40 | <groupId>org.apache.httpcomponents</groupId> | | 35 | 56 | <plugin> | 36 | 57 | <groupId>com.google.appengine</groupId> | 37 | 58 | <artifactId>gcloud-maven-plugin</artifactId> | 38 | | - <version>2.0.9.106.v20160420</version> | | 59 | + <version>${gcloud-maven-plugin-version}</version> | 39 | 60 | </plugin> | 40 | 61 | <plugin> | 41 | 62 | <groupId>org.apache.maven.plugins</groupId> | 42 | 63 | <artifactId>maven-war-plugin</artifactId> | 43 | | - <version>2.6</version> | | 64 | + <version>${maven-war-plugin-version}</version> | 44 | 65 | <configuration> | 45 | 66 | <failOnMissingWebXml>false</failOnMissingWebXml> | 46 | 67 | </configuration> | 47 | 68 | </plugin> | 48 | | - <plugin> | 49 | | - <groupId>org.apache.maven.plugins</groupId> | 50 | | - <version>3.3</version> | 51 | | - <artifactId>maven-compiler-plugin</artifactId> | 52 | | - <configuration> | 53 | | - <source>1.8</source> | 54 | | - <target>1.8</target> | 55 | | - </configuration> | 56 | | - </plugin> | 57 | 69 | <plugin> | 58 | 70 | <groupId>org.eclipse.jetty</groupId> | 59 | 71 | <artifactId>jetty-maven-plugin</artifactId> | 60 | | - <version>9.3.7.v20160115</version> | | 72 | + <version>${jetty-maven-plugin-version}</version> | 61 | 73 | </plugin> | 62 | 74 | </plugins> | 63 | 75 | </build> | |
|