|
| 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>com.google.cloud</groupId> |
| 5 | + <artifactId>gapic-showcase</artifactId> |
| 6 | + <version>0.0.1-SNAPSHOT</version> |
| 7 | + <packaging>jar</packaging> |
| 8 | + <name>GAPIC Showcase Client</name> |
| 9 | + <description> |
| 10 | + GAPIC Showcase is an API that demonstrates Generated API Client (GAPIC) features and common API |
| 11 | + patterns used by Google. |
| 12 | + </description> |
| 13 | + <parent> |
| 14 | + <groupId>com.google.cloud</groupId> |
| 15 | + <artifactId>gapic-showcase-parent</artifactId> |
| 16 | + <version>0.0.1-SNAPSHOT</version> |
| 17 | + </parent> |
| 18 | + |
| 19 | + <properties> |
| 20 | + <gapic-showcase.version>0.36.2</gapic-showcase.version> |
| 21 | + <!-- This is the last version supporting slf4j 1.x, do not upgrade --> |
| 22 | + <slf4j1-logback.version>1.2.13</slf4j1-logback.version> |
| 23 | + <slf4j2-logback.version>1.5.21</slf4j2-logback.version> |
| 24 | + </properties> |
| 25 | + |
| 26 | + <build> |
| 27 | + <plugins> |
| 28 | + <plugin> |
| 29 | + <groupId>org.jacoco</groupId> |
| 30 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 31 | + <version>0.8.13</version> |
| 32 | + <executions> |
| 33 | + <execution> |
| 34 | + <id>report</id> |
| 35 | + <goals> |
| 36 | + <goal>report</goal> |
| 37 | + </goals> |
| 38 | + <configuration> |
| 39 | + <formats> |
| 40 | + <format>XML</format> |
| 41 | + <format>HTML</format> |
| 42 | + </formats> |
| 43 | + </configuration> |
| 44 | + </execution> |
| 45 | + </executions> |
| 46 | + </plugin> |
| 47 | + <plugin> |
| 48 | + <groupId>com.spotify.fmt</groupId> |
| 49 | + <artifactId>fmt-maven-plugin</artifactId> |
| 50 | + <version>2.25</version> |
| 51 | + <configuration> |
| 52 | + <filesNamePattern>(IT.*\.java)|(.*Test.java)|(TestClientInitializer.java)</filesNamePattern> |
| 53 | + </configuration> |
| 54 | + </plugin> |
| 55 | + <plugin> |
| 56 | + <groupId>com.googlecode.maven-download-plugin</groupId> |
| 57 | + <artifactId>download-maven-plugin</artifactId> |
| 58 | + <version>1.6.8</version> |
| 59 | + <executions> |
| 60 | + <execution> |
| 61 | + <id>download-compliance-suite</id> |
| 62 | + <phase>generate-test-resources</phase> |
| 63 | + <goals> |
| 64 | + <goal>wget</goal> |
| 65 | + </goals> |
| 66 | + <configuration> |
| 67 | + <url> |
| 68 | + https://raw.githubusercontent.com/googleapis/gapic-showcase/v${gapic-showcase.version}/server/services/compliance_suite.json |
| 69 | + </url> |
| 70 | + <outputDirectory>src/test/resources</outputDirectory> |
| 71 | + <!-- Set this to always download the latest version and overwrite the existing file --> |
| 72 | + <overwrite>true</overwrite> |
| 73 | + </configuration> |
| 74 | + </execution> |
| 75 | + </executions> |
| 76 | + </plugin> |
| 77 | + </plugins> |
| 78 | + </build> |
| 79 | + |
| 80 | + <dependencies> |
| 81 | + <dependency> |
| 82 | + <groupId>io.grpc</groupId> |
| 83 | + <artifactId>grpc-api</artifactId> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>io.grpc</groupId> |
| 87 | + <artifactId>grpc-stub</artifactId> |
| 88 | + </dependency> |
| 89 | + <dependency> |
| 90 | + <groupId>io.grpc</groupId> |
| 91 | + <artifactId>grpc-protobuf</artifactId> |
| 92 | + </dependency> |
| 93 | + <dependency> |
| 94 | + <groupId>com.google.api</groupId> |
| 95 | + <artifactId>api-common</artifactId> |
| 96 | + </dependency> |
| 97 | + <dependency> |
| 98 | + <groupId>com.google.protobuf</groupId> |
| 99 | + <artifactId>protobuf-java</artifactId> |
| 100 | + </dependency> |
| 101 | + <dependency> |
| 102 | + <groupId>com.google.api.grpc</groupId> |
| 103 | + <artifactId>proto-google-common-protos</artifactId> |
| 104 | + </dependency> |
| 105 | + <dependency> |
| 106 | + <groupId>com.google.api.grpc</groupId> |
| 107 | + <artifactId>grpc-google-common-protos</artifactId> |
| 108 | + <scope>test</scope> |
| 109 | + </dependency> |
| 110 | + <dependency> |
| 111 | + <groupId>com.google.api.grpc</groupId> |
| 112 | + <artifactId>proto-google-iam-v1</artifactId> |
| 113 | + </dependency> |
| 114 | + <dependency> |
| 115 | + <groupId>com.google.api.grpc</groupId> |
| 116 | + <artifactId>proto-gapic-showcase-v1beta1</artifactId> |
| 117 | + </dependency> |
| 118 | + <dependency> |
| 119 | + <groupId>com.google.guava</groupId> |
| 120 | + <artifactId>guava</artifactId> |
| 121 | + </dependency> |
| 122 | + <dependency> |
| 123 | + <groupId>com.google.api</groupId> |
| 124 | + <artifactId>gax</artifactId> |
| 125 | + </dependency> |
| 126 | + <dependency> |
| 127 | + <groupId>com.google.api</groupId> |
| 128 | + <artifactId>gax-grpc</artifactId> |
| 129 | + </dependency> |
| 130 | + <dependency> |
| 131 | + <groupId>com.google.api</groupId> |
| 132 | + <artifactId>gax-httpjson</artifactId> |
| 133 | + </dependency> |
| 134 | + |
| 135 | + <!-- Test dependencies --> |
| 136 | + <dependency> |
| 137 | + <groupId>org.junit.jupiter</groupId> |
| 138 | + <artifactId>junit-jupiter-engine</artifactId> |
| 139 | + <scope>test</scope> |
| 140 | + </dependency> |
| 141 | + <dependency> |
| 142 | + <groupId>org.junit.vintage</groupId> |
| 143 | + <artifactId>junit-vintage-engine</artifactId> |
| 144 | + <scope>test</scope> |
| 145 | + </dependency> |
| 146 | + <dependency> |
| 147 | + <groupId>org.junit.jupiter</groupId> |
| 148 | + <artifactId>junit-jupiter-params</artifactId> |
| 149 | + <scope>test</scope> |
| 150 | + </dependency> |
| 151 | + <dependency> |
| 152 | + <groupId>com.google.truth</groupId> |
| 153 | + <artifactId>truth</artifactId> |
| 154 | + <version>1.4.4</version> |
| 155 | + <exclusions> |
| 156 | + <exclusion> |
| 157 | + <groupId>junit</groupId> |
| 158 | + <artifactId>junit</artifactId> |
| 159 | + </exclusion> |
| 160 | + </exclusions> |
| 161 | + <scope>test</scope> |
| 162 | + </dependency> |
| 163 | + |
| 164 | + <dependency> |
| 165 | + <groupId>com.google.api.grpc</groupId> |
| 166 | + <artifactId>grpc-gapic-showcase-v1beta1</artifactId> |
| 167 | + <scope>test</scope> |
| 168 | + </dependency> |
| 169 | + <!-- Need testing utility classes for generated gRPC clients tests --> |
| 170 | + <dependency> |
| 171 | + <groupId>com.google.api</groupId> |
| 172 | + <artifactId>gax</artifactId> |
| 173 | + <type>test-jar</type> |
| 174 | + <classifier>testlib</classifier> |
| 175 | + <scope>test</scope> |
| 176 | + </dependency> |
| 177 | + <dependency> |
| 178 | + <groupId>com.google.api</groupId> |
| 179 | + <artifactId>gax-grpc</artifactId> |
| 180 | + <type>test-jar</type> |
| 181 | + <classifier>testlib</classifier> |
| 182 | + <scope>test</scope> |
| 183 | + </dependency> |
| 184 | + <dependency> |
| 185 | + <groupId>com.google.api</groupId> |
| 186 | + <artifactId>gax-httpjson</artifactId> |
| 187 | + <type>test-jar</type> |
| 188 | + <classifier>testlib</classifier> |
| 189 | + <scope>test</scope> |
| 190 | + </dependency> |
| 191 | + <dependency> |
| 192 | + <groupId>com.google.auth</groupId> |
| 193 | + <artifactId>google-auth-library-oauth2-http</artifactId> |
| 194 | + <type>test-jar</type> |
| 195 | + <classifier>testlib</classifier> |
| 196 | + <scope>test</scope> |
| 197 | + </dependency> |
| 198 | + <dependency> |
| 199 | + <groupId>com.google.api.grpc</groupId> |
| 200 | + <artifactId>grpc-google-iam-v1</artifactId> |
| 201 | + <scope>test</scope> |
| 202 | + </dependency> |
| 203 | + |
| 204 | + <!-- Otel testing libraries --> |
| 205 | + <dependency> |
| 206 | + <groupId>io.opentelemetry</groupId> |
| 207 | + <artifactId>opentelemetry-api</artifactId> |
| 208 | + <scope>test</scope> |
| 209 | + </dependency> |
| 210 | + <dependency> |
| 211 | + <groupId>io.opentelemetry</groupId> |
| 212 | + <artifactId>opentelemetry-sdk</artifactId> |
| 213 | + <scope>test</scope> |
| 214 | + </dependency> |
| 215 | + <dependency> |
| 216 | + <groupId>io.opentelemetry</groupId> |
| 217 | + <artifactId>opentelemetry-sdk-testing</artifactId> |
| 218 | + <scope>test</scope> |
| 219 | + </dependency> |
| 220 | + <!-- Add the grpc-java opentelemetry module to test for clients using GrpcOpenTelemetry --> |
| 221 | + <dependency> |
| 222 | + <groupId>io.grpc</groupId> |
| 223 | + <artifactId>grpc-opentelemetry</artifactId> |
| 224 | + <scope>test</scope> |
| 225 | + </dependency> |
| 226 | + |
| 227 | + <!-- Logging testing dependencies --> |
| 228 | + |
| 229 | + </dependencies> |
| 230 | + <profiles> |
| 231 | + <profile> |
| 232 | + <id>slf4j2_logback</id> |
| 233 | + <!--slf4j2, logback dependencies, and only compile logging test for 2.x--> |
| 234 | + <activation> |
| 235 | + <property> |
| 236 | + <name>slf4j2_logback</name> |
| 237 | + </property> |
| 238 | + </activation> |
| 239 | + <dependencies> |
| 240 | + <dependency> |
| 241 | + <groupId>org.slf4j</groupId> |
| 242 | + <artifactId>slf4j-api</artifactId> |
| 243 | + <version>2.0.16</version> |
| 244 | + <scope>test</scope> |
| 245 | + </dependency> |
| 246 | + <dependency> |
| 247 | + <groupId>ch.qos.logback</groupId> |
| 248 | + <artifactId>logback-classic</artifactId> |
| 249 | + <version>${slf4j2-logback.version}</version> |
| 250 | + <scope>test</scope> |
| 251 | + </dependency> |
| 252 | + <dependency> |
| 253 | + <groupId>ch.qos.logback</groupId> |
| 254 | + <artifactId>logback-core</artifactId> |
| 255 | + <version>${slf4j2-logback.version}</version> |
| 256 | + <scope>test</scope> |
| 257 | + </dependency> |
| 258 | + </dependencies> |
| 259 | + <build> |
| 260 | + <plugins> |
| 261 | + <plugin> |
| 262 | + <groupId>org.apache.maven.plugins</groupId> |
| 263 | + <artifactId>maven-compiler-plugin</artifactId> |
| 264 | + <configuration> |
| 265 | + <testExcludes> |
| 266 | + <testExclude>**/com/google/showcase/v1beta1/it/*.java</testExclude> |
| 267 | + <testExclude>**/com/google/showcase/v1beta1/it/logging/ITLoggingDisabled.java</testExclude> |
| 268 | + <testExclude>**/com/google/showcase/v1beta1/it/logging/ITLogging1x.java</testExclude> |
| 269 | + </testExcludes> |
| 270 | + </configuration> |
| 271 | + </plugin> |
| 272 | + </plugins> |
| 273 | + </build> |
| 274 | + </profile> |
| 275 | + <profile> |
| 276 | + <id>slf4j1_logback</id> |
| 277 | + <!--slf4j1, logback dependencies, and only compile logging test for 1.x--> |
| 278 | + <activation> |
| 279 | + <property> |
| 280 | + <name>slf4j1_logback</name> |
| 281 | + </property> |
| 282 | + </activation> |
| 283 | + <dependencies> |
| 284 | + <dependency> |
| 285 | + <groupId>org.slf4j</groupId> |
| 286 | + <artifactId>slf4j-api</artifactId> |
| 287 | + <version>1.7.36</version> |
| 288 | + <scope>test</scope> |
| 289 | + </dependency> |
| 290 | + <dependency> |
| 291 | + <groupId>ch.qos.logback</groupId> |
| 292 | + <artifactId>logback-classic</artifactId> |
| 293 | + <version>${slf4j1-logback.version}</version> |
| 294 | + <scope>test</scope> |
| 295 | + </dependency> |
| 296 | + <dependency> |
| 297 | + <groupId>ch.qos.logback</groupId> |
| 298 | + <artifactId>logback-core</artifactId> |
| 299 | + <version>${slf4j1-logback.version}</version> |
| 300 | + <scope>test</scope> |
| 301 | + </dependency> |
| 302 | + </dependencies> |
| 303 | + <build> |
| 304 | + <plugins> |
| 305 | + <plugin> |
| 306 | + <groupId>org.apache.maven.plugins</groupId> |
| 307 | + <artifactId>maven-compiler-plugin</artifactId> |
| 308 | + <configuration> |
| 309 | + <testExcludes> |
| 310 | + <testExclude>**/com/google/showcase/v1beta1/it/*.java</testExclude> |
| 311 | + <testExclude>**/com/google/showcase/v1beta1/it/logging/ITLoggingDisabled.java</testExclude> |
| 312 | + <testExclude>**/com/google/showcase/v1beta1/it/logging/ITLogging.java</testExclude> |
| 313 | + </testExcludes> |
| 314 | + </configuration> |
| 315 | + </plugin> |
| 316 | + </plugins> |
| 317 | + </build> |
| 318 | + </profile> |
| 319 | + <profile> |
| 320 | + <id>disabledLogging</id> |
| 321 | + <!-- Only compile test to run when GOOGLE_SDK_JAVA_LOGGING=!true --> |
| 322 | + <!-- To verify logging correctly turned off when logging deps present --> |
| 323 | + <activation> |
| 324 | + <property> |
| 325 | + <name>disable_logging</name> |
| 326 | + </property> |
| 327 | + </activation> |
| 328 | + <dependencies> |
| 329 | + <dependency> |
| 330 | + <groupId>org.slf4j</groupId> |
| 331 | + <artifactId>slf4j-api</artifactId> |
| 332 | + <version>1.7.36</version> |
| 333 | + <scope>test</scope> |
| 334 | + </dependency> |
| 335 | + <dependency> |
| 336 | + <groupId>ch.qos.logback</groupId> |
| 337 | + <artifactId>logback-classic</artifactId> |
| 338 | + <version>${slf4j1-logback.version}</version> |
| 339 | + <scope>test</scope> |
| 340 | + </dependency> |
| 341 | + <dependency> |
| 342 | + <groupId>ch.qos.logback</groupId> |
| 343 | + <artifactId>logback-core</artifactId> |
| 344 | + <version>${slf4j1-logback.version}</version> |
| 345 | + <scope>test</scope> |
| 346 | + </dependency> |
| 347 | + </dependencies> |
| 348 | + <build> |
| 349 | + <plugins> |
| 350 | + <plugin> |
| 351 | + <groupId>org.apache.maven.plugins</groupId> |
| 352 | + <artifactId>maven-compiler-plugin</artifactId> |
| 353 | + <configuration> |
| 354 | + <testExcludes> |
| 355 | + <testExclude>**/com/google/showcase/v1beta1/it/*.java</testExclude> |
| 356 | + <testExclude>**/com/google/showcase/v1beta1/it/logging/ITLogging1x.java</testExclude> |
| 357 | + <testExclude>**/com/google/showcase/v1beta1/it/logging/ITLogging.java</testExclude> |
| 358 | + </testExcludes> |
| 359 | + </configuration> |
| 360 | + </plugin> |
| 361 | + </plugins> |
| 362 | + </build> |
| 363 | + </profile> |
| 364 | + </profiles> |
| 365 | + |
| 366 | +</project> |
0 commit comments