1{% set group_id = metadata['repo']['distribution_name'].split(':')|first -%} 2{% set artifact_id = metadata['repo']['distribution_name'].split(':')|last -%} 3<?xml version='1.0' encoding='UTF-8'?> 4<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"> 5 <modelVersion>4.0.0</modelVersion> 6 <groupId>com.google.cloud</groupId> 7 <artifactId>{{metadata['repo']['name']}}-snippets</artifactId> 8 <packaging>jar</packaging> 9 <name>Google {{metadata['repo']['name_pretty']}} Snippets</name> 10 <url>https://github.com/{{metadata['repo']['repo']}}</url> 11 12 <!-- 13 The parent pom defines common style checks and testing strategies for our samples. 14 Removing or replacing it should not affect the execution of the samples in any way. 15 --> 16 <parent> 17 <groupId>com.google.cloud.samples</groupId> 18 <artifactId>shared-configuration</artifactId> 19 <version>1.2.0</version> 20 </parent> 21 22 <properties> 23 <maven.compiler.target>1.8</maven.compiler.target> 24 <maven.compiler.source>1.8</maven.compiler.source> 25 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 26 </properties> 27 28 <dependencies> 29 <!-- TODO: switch to libraries-bom after this artifact is included --> 30 <dependency> 31 <groupId>{{ group_id }}</groupId> 32 <artifactId>{{ artifact_id }}</artifactId> 33 <version>{{ metadata['latest_version'] }}</version> 34 </dependency> 35 36 <dependency> 37 <groupId>junit</groupId> 38 <artifactId>junit</artifactId> 39 <version>4.13.2</version> 40 <scope>test</scope> 41 </dependency> 42 <dependency> 43 <groupId>com.google.truth</groupId> 44 <artifactId>truth</artifactId> 45 <version>1.1.3</version> 46 <scope>test</scope> 47 </dependency> 48 </dependencies> 49</project> 50