|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- Runs JavaSamplesTest.java on GitHub (mvn test). google3 builds it with |
| 3 | + the BUILD file instead. --> |
| 4 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 5 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 6 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 7 | + <modelVersion>4.0.0</modelVersion> |
| 8 | + |
| 9 | + <groupId>com.example.gemini</groupId> |
| 10 | + <artifactId>interactions</artifactId> |
| 11 | + <version>1.0-SNAPSHOT</version> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <maven.compiler.release>17</maven.compiler.release> |
| 15 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 16 | + </properties> |
| 17 | + |
| 18 | + <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>com.google.genai</groupId> |
| 21 | + <artifactId>google-genai</artifactId> |
| 22 | + <version>1.57.0</version> |
| 23 | + </dependency> |
| 24 | + <dependency> |
| 25 | + <groupId>junit</groupId> |
| 26 | + <artifactId>junit</artifactId> |
| 27 | + <version>4.13.2</version> |
| 28 | + <scope>test</scope> |
| 29 | + </dependency> |
| 30 | + </dependencies> |
| 31 | + |
| 32 | + <build> |
| 33 | + <testSourceDirectory>${project.basedir}</testSourceDirectory> |
| 34 | + <plugins> |
| 35 | + <plugin> |
| 36 | + <groupId>org.apache.maven.plugins</groupId> |
| 37 | + <artifactId>maven-compiler-plugin</artifactId> |
| 38 | + <version>3.13.0</version> |
| 39 | + <configuration> |
| 40 | + <testIncludes> |
| 41 | + <testInclude>JavaSamplesTest.java</testInclude> |
| 42 | + </testIncludes> |
| 43 | + </configuration> |
| 44 | + </plugin> |
| 45 | + <plugin> |
| 46 | + <groupId>org.apache.maven.plugins</groupId> |
| 47 | + <artifactId>maven-surefire-plugin</artifactId> |
| 48 | + <version>3.5.2</version> |
| 49 | + <configuration> |
| 50 | + <includes> |
| 51 | + <include>**/JavaSamplesTest.java</include> |
| 52 | + </includes> |
| 53 | + </configuration> |
| 54 | + </plugin> |
| 55 | + </plugins> |
| 56 | + </build> |
| 57 | +</project> |
0 commit comments