xref: /aosp_15_r20/external/gson/proto/pom.xml (revision a8de600362638ea28fd6cb3225451dc706d269bb)
1<?xml version="1.0" encoding="UTF-8"?>
2
3<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">
4
5  <modelVersion>4.0.0</modelVersion>
6  <parent>
7    <groupId>com.google.code.gson</groupId>
8    <artifactId>gson-parent</artifactId>
9    <version>2.10.1</version>
10  </parent>
11
12  <artifactId>proto</artifactId>
13  <name>Gson Protobuf Support</name>
14  <description>Gson support for Protobufs</description>
15
16  <licenses>
17    <license>
18      <name>Apache-2.0</name>
19      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
20    </license>
21  </licenses>
22
23  <dependencies>
24    <dependency>
25      <groupId>com.google.code.gson</groupId>
26      <artifactId>gson</artifactId>
27      <version>${project.parent.version}</version>
28    </dependency>
29
30    <dependency>
31      <groupId>com.google.protobuf</groupId>
32      <artifactId>protobuf-java</artifactId>
33      <version>4.0.0-rc-2</version>
34    </dependency>
35
36    <dependency>
37      <groupId>com.google.guava</groupId>
38      <artifactId>guava</artifactId>
39      <version>31.1-jre</version>
40    </dependency>
41
42    <dependency>
43      <groupId>junit</groupId>
44      <artifactId>junit</artifactId>
45      <scope>test</scope>
46    </dependency>
47
48    <dependency>
49      <groupId>com.google.truth</groupId>
50      <artifactId>truth</artifactId>
51      <version>1.1.3</version>
52      <scope>test</scope>
53    </dependency>
54  </dependencies>
55
56  <build>
57    <finalName>gson-proto</finalName>
58    <!-- Setup based on https://quarkus.io/guides/grpc-getting-started#generating-java-files-from-proto-with-protobuf-maven-plugin -->
59    <extensions>
60      <extension>
61        <groupId>kr.motd.maven</groupId>
62        <artifactId>os-maven-plugin</artifactId>
63        <version>1.7.1</version>
64      </extension>
65    </extensions>
66
67    <plugins>
68      <plugin>
69        <groupId>org.xolstice.maven.plugins</groupId>
70        <artifactId>protobuf-maven-plugin</artifactId>
71        <version>0.6.1</version>
72        <configuration>
73          <protocArtifact>com.google.protobuf:protoc:3.17.3:exe:${os.detected.classifier}</protocArtifact>
74        </configuration>
75        <executions>
76          <execution>
77            <goals>
78              <goal>test-compile</goal>
79            </goals>
80          </execution>
81        </executions>
82      </plugin>
83    </plugins>
84
85    <pluginManagement>
86      <plugins>
87        <plugin>
88          <groupId>org.apache.maven.plugins</groupId>
89          <artifactId>maven-deploy-plugin</artifactId>
90          <configuration>
91            <!-- Not deployed -->
92            <skip>true</skip>
93          </configuration>
94        </plugin>
95      </plugins>
96    </pluginManagement>
97  </build>
98
99  <developers>
100    <developer>
101      <name>Inderjeet Singh</name>
102      <organization>Google Inc.</organization>
103    </developer>
104  </developers>
105</project>
106