xref: /aosp_15_r20/external/grpc-grpc-java/examples/example-gauth/pom.xml (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3  <modelVersion>4.0.0</modelVersion>
4  <groupId>io.grpc</groupId>
5  <artifactId>example-gauth</artifactId>
6  <packaging>jar</packaging>
7  <!-- Feel free to delete the comment at the end of these lines. It is just
8       for safely updating the version in our release process. -->
9  <version>1.56.1-SNAPSHOT</version><!-- CURRENT_GRPC_VERSION -->
10  <name>example-gauth</name>
11  <url>https://github.com/grpc/grpc-java</url>
12
13  <properties>
14    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15    <grpc.version>1.56.1-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
16    <protobuf.version>3.22.3</protobuf.version>
17    <!-- required for jdk9 -->
18    <maven.compiler.source>1.8</maven.compiler.source>
19    <maven.compiler.target>1.8</maven.compiler.target>
20  </properties>
21
22  <dependencyManagement>
23    <dependencies>
24      <dependency>
25        <groupId>io.grpc</groupId>
26        <artifactId>grpc-bom</artifactId>
27        <version>${grpc.version}</version>
28        <type>pom</type>
29        <scope>import</scope>
30      </dependency>
31    </dependencies>
32  </dependencyManagement>
33
34  <dependencies>
35    <dependency>
36      <groupId>io.grpc</groupId>
37      <artifactId>grpc-netty-shaded</artifactId>
38      <scope>runtime</scope>
39    </dependency>
40    <dependency>
41      <groupId>io.grpc</groupId>
42      <artifactId>grpc-protobuf</artifactId>
43    </dependency>
44    <dependency>
45      <groupId>io.grpc</groupId>
46      <artifactId>grpc-stub</artifactId>
47    </dependency>
48    <dependency>
49      <groupId>io.grpc</groupId>
50      <artifactId>grpc-auth</artifactId>
51    </dependency>
52    <dependency>
53      <groupId>org.apache.tomcat</groupId>
54      <artifactId>annotations-api</artifactId>
55      <version>6.0.53</version>
56      <scope>provided</scope> <!-- not needed at runtime -->
57    </dependency>
58    <dependency>
59      <groupId>io.grpc</groupId>
60      <artifactId>grpc-testing</artifactId>
61      <scope>test</scope>
62    </dependency>
63    <dependency>
64      <groupId>com.google.auth</groupId>
65      <artifactId>google-auth-library-oauth2-http</artifactId>
66      <version>0.9.0</version>
67    </dependency>
68    <dependency>
69      <groupId>com.google.api.grpc</groupId>
70      <artifactId>grpc-google-cloud-pubsub-v1</artifactId>
71      <version>0.1.24</version>
72    </dependency>
73    <dependency>
74      <groupId>junit</groupId>
75      <artifactId>junit</artifactId>
76      <version>4.13.2</version>
77      <scope>test</scope>
78    </dependency>
79    <dependency>
80      <groupId>org.mockito</groupId>
81      <artifactId>mockito-core</artifactId>
82      <version>3.4.0</version>
83      <scope>test</scope>
84    </dependency>
85  </dependencies>
86
87  <build>
88    <extensions>
89      <extension>
90        <groupId>kr.motd.maven</groupId>
91        <artifactId>os-maven-plugin</artifactId>
92        <version>1.7.1</version>
93      </extension>
94    </extensions>
95    <plugins>
96      <plugin>
97        <groupId>org.apache.maven.plugins</groupId>
98        <artifactId>maven-enforcer-plugin</artifactId>
99        <version>1.4.1</version>
100        <executions>
101          <execution>
102            <id>enforce</id>
103            <goals>
104              <goal>enforce</goal>
105            </goals>
106            <configuration>
107              <rules>
108                <requireUpperBoundDeps/>
109              </rules>
110            </configuration>
111          </execution>
112        </executions>
113      </plugin>
114    </plugins>
115  </build>
116</project>
117