|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + 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"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <groupId>com.google.api</groupId> |
| 6 | + <artifactId>gapic-generator-java</artifactId> |
| 7 | + <version>0.0.1-SNAPSHOT</version> |
| 8 | + |
| 9 | + <properties> |
| 10 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 11 | + <!-- Should be in sync with repositories.bzl --> |
| 12 | + <googleapis.commit>44d6bef0ca6db8bba3fb324c8186e694bcc4829c</googleapis.commit> |
| 13 | + </properties> |
| 14 | + |
| 15 | + <dependencyManagement> |
| 16 | + <dependencies> |
| 17 | + <dependency> |
| 18 | + <groupId>com.google.cloud</groupId> |
| 19 | + <artifactId>google-cloud-shared-dependencies</artifactId> |
| 20 | + <version>3.0.6</version> |
| 21 | + <type>pom</type> |
| 22 | + <scope>import</scope> |
| 23 | + </dependency> |
| 24 | + </dependencies> |
| 25 | + </dependencyManagement> |
| 26 | + |
| 27 | + <build> |
| 28 | + <sourceDirectory>../src/main/java</sourceDirectory> |
| 29 | + <resources> |
| 30 | + <resource> |
| 31 | + <directory>../src/</directory> |
| 32 | + </resource> |
| 33 | + </resources> |
| 34 | + <testSourceDirectory>../src/test/java</testSourceDirectory> |
| 35 | + <directory>../target</directory> |
| 36 | + |
| 37 | + <extensions> |
| 38 | + <extension> |
| 39 | + <groupId>kr.motd.maven</groupId> |
| 40 | + <artifactId>os-maven-plugin</artifactId> |
| 41 | + <version>1.7.1</version> |
| 42 | + </extension> |
| 43 | + </extensions> |
| 44 | + |
| 45 | + <plugins> |
| 46 | + <plugin> |
| 47 | + <artifactId>maven-compiler-plugin</artifactId> |
| 48 | + <version>3.10.1</version> |
| 49 | + <configuration> |
| 50 | + <source>8</source> |
| 51 | + <target>8</target> |
| 52 | + <annotationProcessorPaths> |
| 53 | + <path> |
| 54 | + <groupId>com.google.auto.value</groupId> |
| 55 | + <artifactId>auto-value</artifactId> |
| 56 | + <version>1.10.1</version> |
| 57 | + </path> |
| 58 | + </annotationProcessorPaths> |
| 59 | + </configuration> |
| 60 | + </plugin> |
| 61 | + |
| 62 | + <plugin> |
| 63 | + <groupId>com.coveo</groupId> |
| 64 | + <artifactId>fmt-maven-plugin</artifactId> |
| 65 | + <version>2.9.1</version> |
| 66 | + </plugin> |
| 67 | + |
| 68 | + <plugin> |
| 69 | + <groupId>com.googlecode.maven-download-plugin</groupId> |
| 70 | + <artifactId>download-maven-plugin</artifactId> |
| 71 | + <version>1.6.8</version> |
| 72 | + <executions> |
| 73 | + <execution> |
| 74 | + <id>download-metadata-proto</id> |
| 75 | + <phase>generate-sources</phase> |
| 76 | + <goals> |
| 77 | + <goal>wget</goal> |
| 78 | + </goals> |
| 79 | + <configuration> |
| 80 | + <url> |
| 81 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/gapic/metadata/gapic_metadata.proto |
| 82 | + </url> |
| 83 | + <outputDirectory>../target/generated-sources/proto</outputDirectory> |
| 84 | + </configuration> |
| 85 | + </execution> |
| 86 | + <execution> |
| 87 | + <id>download-common-resources-proto</id> |
| 88 | + <phase>generate-test-sources</phase> |
| 89 | + <goals> |
| 90 | + <goal>wget</goal> |
| 91 | + </goals> |
| 92 | + <configuration> |
| 93 | + <url> |
| 94 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/cloud/common_resources.proto |
| 95 | + </url> |
| 96 | + <outputDirectory>../target/generated-test-sources/proto</outputDirectory> |
| 97 | + </configuration> |
| 98 | + </execution> |
| 99 | + <execution> |
| 100 | + <id>download-pubsub-proto</id> |
| 101 | + <phase>generate-test-sources</phase> |
| 102 | + <goals> |
| 103 | + <goal>wget</goal> |
| 104 | + </goals> |
| 105 | + <configuration> |
| 106 | + <url> |
| 107 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/pubsub/v1/pubsub.proto |
| 108 | + </url> |
| 109 | + <outputDirectory>../target/generated-test-sources/proto</outputDirectory> |
| 110 | + </configuration> |
| 111 | + </execution> |
| 112 | + <execution> |
| 113 | + <id>download-schema-proto</id> |
| 114 | + <phase>generate-test-sources</phase> |
| 115 | + <goals> |
| 116 | + <goal>wget</goal> |
| 117 | + </goals> |
| 118 | + <configuration> |
| 119 | + <url> |
| 120 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/pubsub/v1/schema.proto |
| 121 | + </url> |
| 122 | + <outputDirectory>../target/generated-test-sources/proto/google/pubsub/v1 |
| 123 | + </outputDirectory> |
| 124 | + </configuration> |
| 125 | + </execution> |
| 126 | + <execution> |
| 127 | + <id>download-logging-proto</id> |
| 128 | + <phase>generate-test-sources</phase> |
| 129 | + <goals> |
| 130 | + <goal>wget</goal> |
| 131 | + </goals> |
| 132 | + <configuration> |
| 133 | + <url> |
| 134 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/logging/v2/logging.proto |
| 135 | + </url> |
| 136 | + <outputDirectory>../target/generated-test-sources/proto</outputDirectory> |
| 137 | + </configuration> |
| 138 | + </execution> |
| 139 | + <execution> |
| 140 | + <id>download-log-entry-proto</id> |
| 141 | + <phase>generate-test-sources</phase> |
| 142 | + <goals> |
| 143 | + <goal>wget</goal> |
| 144 | + </goals> |
| 145 | + <configuration> |
| 146 | + <url> |
| 147 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/logging/v2/log_entry.proto |
| 148 | + </url> |
| 149 | + <outputDirectory>../target/generated-test-sources/proto/google/logging/v2 |
| 150 | + </outputDirectory> |
| 151 | + </configuration> |
| 152 | + </execution> |
| 153 | + <execution> |
| 154 | + <id>download-logging-config-proto</id> |
| 155 | + <phase>generate-test-sources</phase> |
| 156 | + <goals> |
| 157 | + <goal>wget</goal> |
| 158 | + </goals> |
| 159 | + <configuration> |
| 160 | + <url> |
| 161 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/logging/v2/logging_config.proto |
| 162 | + </url> |
| 163 | + <outputDirectory>../target/generated-test-sources/proto/google/logging/v2 |
| 164 | + </outputDirectory> |
| 165 | + </configuration> |
| 166 | + </execution> |
| 167 | + <execution> |
| 168 | + <id>download-logging-metrics-proto</id> |
| 169 | + <phase>generate-test-sources</phase> |
| 170 | + <goals> |
| 171 | + <goal>wget</goal> |
| 172 | + </goals> |
| 173 | + <configuration> |
| 174 | + <url> |
| 175 | + https://raw.githubusercontent.com/googleapis/googleapis/${googleapis.commit}/google/logging/v2/logging_metrics.proto |
| 176 | + </url> |
| 177 | + <outputDirectory>../target/generated-test-sources/proto/google/logging/v2 |
| 178 | + </outputDirectory> |
| 179 | + </configuration> |
| 180 | + </execution> |
| 181 | + </executions> |
| 182 | + </plugin> |
| 183 | + |
| 184 | + <plugin> |
| 185 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 186 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 187 | + <version>0.6.1</version> |
| 188 | + <configuration> |
| 189 | + <protocArtifact>com.google.protobuf:protoc:3.21.7:exe:${os.detected.classifier} |
| 190 | + </protocArtifact> |
| 191 | + </configuration> |
| 192 | + <executions> |
| 193 | + <execution> |
| 194 | + <id>compile-protos</id> |
| 195 | + <goals> |
| 196 | + <goal>compile</goal> |
| 197 | + </goals> |
| 198 | + <configuration> |
| 199 | + <protoSourceRoot>../src/main/proto</protoSourceRoot> |
| 200 | + </configuration> |
| 201 | + </execution> |
| 202 | + <execution> |
| 203 | + <id>compile-downloaded-protos</id> |
| 204 | + <goals> |
| 205 | + <goal>compile</goal> |
| 206 | + </goals> |
| 207 | + <configuration> |
| 208 | + <protoSourceRoot>../target/generated-sources/proto</protoSourceRoot> |
| 209 | + <clearOutputDirectory>false</clearOutputDirectory> |
| 210 | + </configuration> |
| 211 | + </execution> |
| 212 | + <execution> |
| 213 | + <id>compile-test-protos</id> |
| 214 | + <goals> |
| 215 | + <goal>test-compile</goal> |
| 216 | + </goals> |
| 217 | + <configuration> |
| 218 | + <protoTestSourceRoot>../src/test/proto</protoTestSourceRoot> |
| 219 | + <writeDescriptorSet>true</writeDescriptorSet> |
| 220 | + <includeSourceInfoInDescriptorSet>true</includeSourceInfoInDescriptorSet> |
| 221 | + <includeDependenciesInDescriptorSet>true</includeDependenciesInDescriptorSet> |
| 222 | + <descriptorSetFileName>test-proto.descriptorset</descriptorSetFileName> |
| 223 | + </configuration> |
| 224 | + </execution> |
| 225 | + <execution> |
| 226 | + <id>compile-downloaded-test-protos</id> |
| 227 | + <goals> |
| 228 | + <goal>test-compile</goal> |
| 229 | + </goals> |
| 230 | + <configuration> |
| 231 | + <protoTestSourceRoot>../target/generated-test-sources/proto</protoTestSourceRoot> |
| 232 | + <clearOutputDirectory>false</clearOutputDirectory> |
| 233 | + </configuration> |
| 234 | + </execution> |
| 235 | + </executions> |
| 236 | + </plugin> |
| 237 | + |
| 238 | + <plugin> |
| 239 | + <groupId>org.apache.maven.plugins</groupId> |
| 240 | + <artifactId>maven-surefire-plugin</artifactId> |
| 241 | + <version>3.0.0-M7</version> |
| 242 | + <configuration> |
| 243 | + <additionalClasspathElements> |
| 244 | + <additionalClasspathElement> |
| 245 | + ../target/generated-test-resources/protobuf/descriptor-sets |
| 246 | + </additionalClasspathElement> |
| 247 | + </additionalClasspathElements> |
| 248 | + <workingDirectory>../</workingDirectory> |
| 249 | + </configuration> |
| 250 | + </plugin> |
| 251 | + |
| 252 | + <!-- Code coverage for SonarCloud --> |
| 253 | + <plugin> |
| 254 | + <groupId>org.jacoco</groupId> |
| 255 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 256 | + <version>0.8.8</version> |
| 257 | + <executions> |
| 258 | + <execution> |
| 259 | + <goals> |
| 260 | + <goal>prepare-agent</goal> |
| 261 | + </goals> |
| 262 | + </execution> |
| 263 | + <execution> |
| 264 | + <id>report</id> |
| 265 | + <phase>test</phase> |
| 266 | + <goals> |
| 267 | + <goal>report</goal> |
| 268 | + </goals> |
| 269 | + </execution> |
| 270 | + </executions> |
| 271 | + </plugin> |
| 272 | + |
| 273 | + <plugin> |
| 274 | + <groupId>org.apache.maven.plugins</groupId> |
| 275 | + <artifactId>maven-shade-plugin</artifactId> |
| 276 | + <version>3.4.1</version> |
| 277 | + <executions> |
| 278 | + <execution> |
| 279 | + <phase>package</phase> |
| 280 | + <goals> |
| 281 | + <goal>shade</goal> |
| 282 | + </goals> |
| 283 | + <configuration> |
| 284 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 285 | + <filters> |
| 286 | + <filter> |
| 287 | + <artifact>*:*</artifact> |
| 288 | + <excludes> |
| 289 | + <exclude>META-INF/*.SF</exclude> |
| 290 | + <exclude>META-INF/*.DSA</exclude> |
| 291 | + <exclude>META-INF/*.RSA</exclude> |
| 292 | + </excludes> |
| 293 | + </filter> |
| 294 | + </filters> |
| 295 | + </configuration> |
| 296 | + </execution> |
| 297 | + </executions> |
| 298 | + </plugin> |
| 299 | + </plugins> |
| 300 | + </build> |
| 301 | + |
| 302 | + <dependencies> |
| 303 | + <dependency> |
| 304 | + <groupId>com.google.guava</groupId> |
| 305 | + <artifactId>guava</artifactId> |
| 306 | + </dependency> |
| 307 | + <dependency> |
| 308 | + <groupId>com.google.api</groupId> |
| 309 | + <artifactId>gax</artifactId> |
| 310 | + </dependency> |
| 311 | + <dependency> |
| 312 | + <groupId>com.google.api</groupId> |
| 313 | + <artifactId>gax</artifactId> |
| 314 | + <classifier>testlib</classifier> |
| 315 | + </dependency> |
| 316 | + <dependency> |
| 317 | + <groupId>com.google.api</groupId> |
| 318 | + <artifactId>gax-grpc</artifactId> |
| 319 | + </dependency> |
| 320 | + <dependency> |
| 321 | + <groupId>com.google.api</groupId> |
| 322 | + <artifactId>gax-grpc</artifactId> |
| 323 | + <classifier>testlib</classifier> |
| 324 | + </dependency> |
| 325 | + <dependency> |
| 326 | + <groupId>com.google.api</groupId> |
| 327 | + <artifactId>gax-httpjson</artifactId> |
| 328 | + </dependency> |
| 329 | + <dependency> |
| 330 | + <groupId>com.google.api</groupId> |
| 331 | + <artifactId>gax-httpjson</artifactId> |
| 332 | + <classifier>testlib</classifier> |
| 333 | + </dependency> |
| 334 | + <dependency> |
| 335 | + <groupId>com.google.auto.value</groupId> |
| 336 | + <artifactId>auto-value-annotations</artifactId> |
| 337 | + </dependency> |
| 338 | + <dependency> |
| 339 | + <groupId>com.google.protobuf</groupId> |
| 340 | + <artifactId>protobuf-java-util</artifactId> |
| 341 | + </dependency> |
| 342 | + <dependency> |
| 343 | + <groupId>io.grpc</groupId> |
| 344 | + <artifactId>grpc-stub</artifactId> |
| 345 | + </dependency> |
| 346 | + <dependency> |
| 347 | + <groupId>io.grpc</groupId> |
| 348 | + <artifactId>grpc-protobuf</artifactId> |
| 349 | + </dependency> |
| 350 | + <dependency> |
| 351 | + <groupId>org.yaml</groupId> |
| 352 | + <artifactId>snakeyaml</artifactId> |
| 353 | + <version>1.33</version> |
| 354 | + </dependency> |
| 355 | + <dependency> |
| 356 | + <groupId>com.google.googlejavaformat</groupId> |
| 357 | + <artifactId>google-java-format</artifactId> |
| 358 | + <version>1.7</version> |
| 359 | + </dependency> |
| 360 | + <dependency> |
| 361 | + <groupId>junit</groupId> |
| 362 | + <artifactId>junit</artifactId> |
| 363 | + <version>4.13.2</version> |
| 364 | + </dependency> |
| 365 | + |
| 366 | + <!-- |
| 367 | + TODO: remove when dropping Java 8. |
| 368 | + https://github.com/googleapis/gapic-generator-java/issues/888 |
| 369 | + --> |
| 370 | + <dependency> |
| 371 | + <groupId>javax.annotation</groupId> |
| 372 | + <artifactId>javax.annotation-api</artifactId> |
| 373 | + </dependency> |
| 374 | + |
| 375 | + <dependency> |
| 376 | + <groupId>com.google.truth</groupId> |
| 377 | + <artifactId>truth</artifactId> |
| 378 | + <version>1.1.3</version> |
| 379 | + <scope>test</scope> |
| 380 | + </dependency> |
| 381 | + <dependency> |
| 382 | + <groupId>io.github.java-diff-utils</groupId> |
| 383 | + <artifactId>java-diff-utils</artifactId> |
| 384 | + <version>4.12</version> |
| 385 | + <scope>test</scope> |
| 386 | + </dependency> |
| 387 | + </dependencies> |
| 388 | +</project> |
0 commit comments