• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<project
3    xmlns="http://maven.apache.org/POM/4.0.0"
4    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6  <modelVersion>4.0.0</modelVersion>
7  <parent>
8    <groupId>com.google.truth.extensions</groupId>
9    <artifactId>truth-extensions-parent</artifactId>
10    <version>HEAD-SNAPSHOT</version>
11  </parent>
12  <artifactId>truth-liteproto-extension</artifactId>
13  <name>Truth Extension for Lite Protocol Buffers</name>
14  <description>
15    An extension for the Truth test assertion framework supporting the Lite
16    version of Protocol Buffers.
17  </description>
18  <dependencies>
19    <dependency>
20      <groupId>com.google.truth</groupId>
21      <artifactId>truth</artifactId>
22    </dependency>
23    <dependency>
24      <groupId>com.google.guava</groupId>
25      <artifactId>guava</artifactId>
26    </dependency>
27    <dependency>
28      <groupId>org.jspecify</groupId>
29      <artifactId>jspecify</artifactId>
30    </dependency>
31    <dependency>
32      <groupId>com.google.auto.value</groupId>
33      <artifactId>auto-value-annotations</artifactId>
34    </dependency>
35    <dependency>
36      <groupId>com.google.errorprone</groupId>
37      <artifactId>error_prone_annotations</artifactId>
38    </dependency>
39    <dependency>
40      <groupId>com.google.protobuf</groupId>
41      <artifactId>protobuf-lite</artifactId>
42      <!-- protobuf-lite is not compatible with protobuf-java, so we mark it optional. -->
43      <optional>true</optional>
44    </dependency>
45  </dependencies>
46  <build>
47    <resources>
48      <resource>
49        <directory>../..</directory>
50        <includes>
51          <include>LICENSE</include>
52        </includes>
53        <targetPath>META-INF</targetPath>
54      </resource>
55    </resources>
56    <extensions>
57      <extension>
58        <groupId>kr.motd.maven</groupId>
59        <artifactId>os-maven-plugin</artifactId>
60        <version>${os-maven-plugin.version}</version>
61      </extension>
62    </extensions>
63
64    <plugins>
65      <plugin>
66        <artifactId>maven-javadoc-plugin</artifactId>
67      </plugin>
68      <plugin>
69        <groupId>org.xolstice.maven.plugins</groupId>
70        <artifactId>protobuf-maven-plugin</artifactId>
71        <configuration>
72          <protocArtifact>com.google.protobuf:protoc:${protobuf-lite.protoc.version}:exe:${os.detected.classifier}</protocArtifact>
73          <includes>
74            <param>test_message_lite2.proto</param>
75            <param>test_message_lite3.proto</param>
76          </includes>
77        </configuration>
78        <executions>
79          <execution>
80            <id>build-test-protos</id>
81            <phase>generate-test-sources</phase>
82            <goals>
83              <goal>test-compile</goal>
84            </goals>
85          </execution>
86        </executions>
87      </plugin>
88      <plugin>
89        <artifactId>maven-compiler-plugin</artifactId>
90        <configuration>
91          <annotationProcessorPaths>
92            <path>
93              <groupId>com.google.auto.value</groupId>
94              <artifactId>auto-value</artifactId>
95              <version>${auto-value.version}</version>
96            </path>
97          </annotationProcessorPaths>
98        </configuration>
99      </plugin>
100    </plugins>
101  </build>
102</project>
103
104
105