• 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.checkerframework</groupId>
29      <artifactId>checker-qual</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    <extensions>
48      <extension>
49        <groupId>kr.motd.maven</groupId>
50        <artifactId>os-maven-plugin</artifactId>
51        <version>${os-maven-plugin.version}</version>
52      </extension>
53    </extensions>
54
55    <plugins>
56      <plugin>
57        <artifactId>maven-javadoc-plugin</artifactId>
58      </plugin>
59      <plugin>
60        <groupId>org.xolstice.maven.plugins</groupId>
61        <artifactId>protobuf-maven-plugin</artifactId>
62        <configuration>
63          <protocArtifact>com.google.protobuf:protoc:${protobuf-lite.protoc.version}:exe:${os.detected.classifier}</protocArtifact>
64          <includes>
65            <param>test_message_lite2.proto</param>
66            <param>test_message_lite3.proto</param>
67          </includes>
68        </configuration>
69        <executions>
70          <execution>
71            <id>build-test-protos</id>
72            <phase>generate-test-sources</phase>
73            <goals>
74              <goal>test-compile</goal>
75            </goals>
76          </execution>
77        </executions>
78      </plugin>
79      <plugin>
80        <artifactId>maven-compiler-plugin</artifactId>
81        <configuration>
82          <annotationProcessorPaths>
83            <path>
84              <groupId>com.google.auto.value</groupId>
85              <artifactId>auto-value</artifactId>
86              <version>${auto-value.version}</version>
87            </path>
88          </annotationProcessorPaths>
89        </configuration>
90      </plugin>
91    </plugins>
92  </build>
93</project>
94
95
96