1<?xml version="1.0" encoding="UTF-8"?> 2<project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 5 <modelVersion>4.0.0</modelVersion> 6 <artifactId>google-cloud-jar-parent</artifactId> 7 <groupId>com.google.cloud</groupId> 8 <version>1.11.0</version><!-- {x-version-update:google-cloud-java:current} --> 9 <packaging>pom</packaging> 10 <name>Google Cloud JAR Parent</name> 11 <description> 12 The parent for all client library JAR modules in the repository. 13 </description> 14 15 <parent> 16 <groupId>com.google.cloud</groupId> 17 <artifactId>google-cloud-pom-parent</artifactId> 18 <version>1.11.0</version><!-- {x-version-update:google-cloud-java:current} --> 19 <relativePath>../google-cloud-pom-parent/pom.xml</relativePath> 20 </parent> 21 <properties> 22 <skipUnitTests>false</skipUnitTests> 23 </properties> 24 25 <dependencyManagement> 26 <dependencies> 27 <dependency> 28 <groupId>com.google.cloud</groupId> 29 <artifactId>google-cloud-shared-dependencies</artifactId> 30 <version>3.9.0</version> 31 <type>pom</type> 32 <scope>import</scope> 33 </dependency> 34 <dependency> 35 <groupId>io.perfmark</groupId> 36 <artifactId>perfmark-api</artifactId> 37 <version>0.26.0</version> 38 </dependency> 39 <dependency> 40 <groupId>com.google.cloud</groupId> 41 <artifactId>google-cloud-pubsub-bom</artifactId> 42 <version>1.123.11</version> 43 <type>pom</type> 44 <scope>import</scope> 45 </dependency> 46 <dependency> 47 <groupId>com.google.cloud</groupId> 48 <artifactId>google-cloud-storage</artifactId> 49 <version>2.22.1</version> 50 </dependency> 51 <dependency> 52 <groupId>com.google.apis</groupId> 53 <artifactId>google-api-services-dns</artifactId> 54 <version>v1-rev20230330-2.0.0</version> 55 </dependency> 56 <dependency> 57 <groupId>com.google.apis</groupId> 58 <artifactId>google-api-services-translate</artifactId> 59 <version>v2-rev20170525-2.0.0</version> 60 </dependency> 61 <dependency> 62 <groupId>com.google.apis</groupId> 63 <artifactId>google-api-services-cloudresourcemanager</artifactId> 64 <version>v1-rev20230129-2.0.0</version> 65 </dependency> 66 <dependency> 67 <groupId>com.google.apis</groupId> 68 <artifactId>google-api-services-storage</artifactId> 69 <version>v1-rev20230301-2.0.0</version> 70 </dependency> 71 72 <!-- Test dependencies --> 73 <dependency> 74 <groupId>junit</groupId> 75 <artifactId>junit</artifactId> 76 <version>4.13.2</version> 77 <scope>test</scope> 78 </dependency> 79 <dependency> 80 <groupId>joda-time</groupId> 81 <artifactId>joda-time</artifactId> 82 <version>2.12.5</version> 83 <scope>test</scope> 84 </dependency> 85 <dependency> 86 <groupId>com.google.truth</groupId> 87 <artifactId>truth</artifactId> 88 <version>1.1.3</version> 89 <scope>test</scope> 90 <exclusions> 91 <exclusion> 92 <groupId>org.checkerframework</groupId> 93 <artifactId>checker-qual</artifactId> 94 </exclusion> 95 </exclusions> 96 </dependency> 97 <dependency> 98 <groupId>org.easymock</groupId> 99 <artifactId>easymock</artifactId> 100 <version>5.1.0</version> 101 <scope>test</scope> 102 </dependency> 103 <dependency> 104 <groupId>org.mockito</groupId> 105 <artifactId>mockito-all</artifactId> 106 <version>1.10.19</version> 107 <scope>test</scope> 108 </dependency> 109 <dependency> 110 <groupId>org.objenesis</groupId> 111 <artifactId>objenesis</artifactId> 112 <version>3.3</version> 113 <scope>test</scope> 114 </dependency> 115 </dependencies> 116 </dependencyManagement> 117 118 <profiles> 119 <profile> 120 <id>java9</id> 121 <activation> 122 <jdk>[9,)</jdk> 123 </activation> 124 <dependencies> 125 <!-- needed for @Generated annotation at compile-time --> 126 <dependency> 127 <groupId>javax.annotation</groupId> 128 <artifactId>javax.annotation-api</artifactId> 129 <scope>provided</scope> 130 </dependency> 131 </dependencies> 132 </profile> 133 <profile> 134 <id>java17</id> 135 <activation> 136 <jdk>[17,)</jdk> 137 </activation> 138 <build> 139 <plugins> 140 <plugin> 141 <groupId>org.apache.maven.plugins</groupId> 142 <artifactId>maven-surefire-plugin</artifactId> 143 <configuration> 144 <argLine> 145 --add-opens=java.base/java.time=ALL-UNNAMED 146 --add-opens=java.base/java.math=ALL-UNNAMED 147 --add-opens=java.base/sun.security.rsa=ALL-UNNAMED 148 --add-opens=java.base/sun.security.pkcs=ALL-UNNAMED 149 --add-opens=java.base/sun.security.x509=ALL-UNNAMED 150 --add-opens=java.base/sun.security.util=ALL-UNNAMED 151 --add-opens=java.base/java.security=ALL-UNNAMED 152 --add-opens=java.base/java.lang=ALL-UNNAMED 153 </argLine> 154 </configuration> 155 </plugin> 156 </plugins> 157 </build> 158 </profile> 159 </profiles> 160 161 <build> 162 <plugins> 163 <!-- jacoco code coverage --> 164 <plugin> 165 <groupId>org.jacoco</groupId> 166 <artifactId>jacoco-maven-plugin</artifactId> 167 <version>0.8.10</version> 168 <executions> 169 <execution> 170 <goals> 171 <goal>prepare-agent</goal> 172 </goals> 173 </execution> 174 <execution> 175 <id>report</id> 176 <phase>test</phase> 177 <goals> 178 <goal>report</goal> 179 </goals> 180 </execution> 181 </executions> 182 </plugin> 183 <plugin> 184 <groupId>org.apache.maven.plugins</groupId> 185 <artifactId>maven-surefire-plugin</artifactId> 186 <configuration> 187 <skip>${skipUnitTests}</skip> 188 </configuration> 189 </plugin> 190 <plugin> 191 <groupId>org.apache.maven.plugins</groupId> 192 <artifactId>maven-failsafe-plugin</artifactId> 193 <configuration> 194 <forkCount>1C</forkCount> 195 <reuseForks>true</reuseForks> 196 </configuration> 197 </plugin> 198 <plugin> 199 <groupId>org.codehaus.mojo</groupId> 200 <artifactId>flatten-maven-plugin</artifactId> 201 </plugin> 202 </plugins> 203 </build> 204 205 <reporting> 206 <plugins> 207 <plugin> 208 <groupId>org.apache.maven.plugins</groupId> 209 <artifactId>maven-project-info-reports-plugin</artifactId> 210 <version>3.4.3</version> 211 <reportSets> 212 <reportSet> 213 <reports> 214 <report>index</report> 215 <report>dependency-info</report> 216 <report>team</report> 217 <report>ci-management</report> 218 <report>issue-management</report> 219 <report>licenses</report> 220 <report>scm</report> 221 <report>dependency-management</report> 222 <report>distribution-management</report> 223 <report>summary</report> 224 <report>modules</report> 225 </reports> 226 </reportSet> 227 </reportSets> 228 <configuration> 229 <dependencyDetailsEnabled>true</dependencyDetailsEnabled> 230 <artifactId>${site.installationModule}</artifactId> 231 <packaging>jar</packaging> 232 </configuration> 233 </plugin> 234 <plugin> 235 <groupId>org.apache.maven.plugins</groupId> 236 <artifactId>maven-javadoc-plugin</artifactId> 237 <version>3.4.1</version> 238 <reportSets> 239 <reportSet> 240 <id>html</id> 241 <reports> 242 <report>aggregate</report> 243 <report>javadoc</report> 244 </reports> 245 </reportSet> 246 </reportSets> 247 <configuration> 248 <doclint>none</doclint> 249 <show>protected</show> 250 <nohelp>true</nohelp> 251 <outputDirectory>${project.build.directory}/javadoc</outputDirectory> 252 <groups> 253 <group> 254 <title>Test helpers packages</title> 255 <packages>com.google.cloud.testing</packages> 256 </group> 257 <group> 258 <title>SPI packages</title> 259 <packages>com.google.cloud.spi*</packages> 260 </group> 261 </groups> 262 263 <links> 264 <link>https://grpc.io/grpc-java/javadoc/</link> 265 <link>https://developers.google.com/protocol-buffers/docs/reference/java/</link> 266 <link>https://googleapis.dev/java/google-auth-library/latest/</link> 267 <link>https://googleapis.dev/java/gax/latest/</link> 268 <link>https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/</link> 269 </links> 270 </configuration> 271 </plugin> 272 </plugins> 273 </reporting> 274</project> 275