Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions samples/preview-snippets/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version='1.0' encoding='UTF-8'?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>firestore-snippets</artifactId>
<packaging>jar</packaging>
<name>Google Cloud Firestore Snippets</name>
<url>https://github.com/googleapis/java-firestore</url>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in anyway.
-->
<parent>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.2.0</version>
</parent>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<beam.version>2.57.0</beam.version>
<!-- Define a default empty value property which can be overridden on the command line if
necessary by passing `-Dfirestore.project.id="some-id"` when running maven exec -->
<firestore.project.id/>
</properties>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-firestore-bom</artifactId>
<!-- Tell the application to use the private preview BOM of cloud SDK -->
<version>99.99.0-PRIVATEPREVIEW</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<!-- Use firebase-admin SDK as usual which will pull in the private preview version of cloud SDK -->
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>9.7.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<!-- to run quickstart:
mvn exec:exec@quickstart -Dfirestore.project.id="your-firestore-project-id"-->
<id>quickstart</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>com.example.firestore.Quickstart</argument>
<argument>${firestore.project.id}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>beam-sample</id>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading