blob: 84ba338d1ae5c99116568cd460e330f047333005 [file] [log] [blame]
cushonc5ee8762016-08-23 14:17:08 -07001<?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/xsd/maven-4.0.0.xsd">
6 <modelVersion>4.0.0</modelVersion>
7
8 <groupId>com.google.turbine</groupId>
9 <artifactId>turbine</artifactId>
10 <version>0.1-SNAPSHOT</version>
11
12 <name>turbine</name>
13 <description>
14 turbine is a header compiler for Java
15 </description>
16
cushon42a8f882016-12-07 11:54:56 -080017 <properties>
cushon04ebb172018-08-08 10:53:04 -070018 <asm.version>6.2.1</asm.version>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -070019 <javac.version>9+181-r4173-1</javac.version>
cushon42a8f882016-12-07 11:54:56 -080020 </properties>
21
cushonc5ee8762016-08-23 14:17:08 -070022 <dependencies>
23 <dependency>
24 <groupId>com.google.guava</groupId>
25 <artifactId>guava</artifactId>
cushon8eab64c2018-08-24 09:56:22 -070026 <version>25.1-jre</version>
cushonc5ee8762016-08-23 14:17:08 -070027 </dependency>
28 <dependency>
cushonf0e97442016-09-14 10:48:35 -070029 <groupId>com.google.errorprone</groupId>
30 <artifactId>error_prone_annotations</artifactId>
cushond0fcced2018-04-09 22:38:11 -070031 <version>2.2.0</version>
32 </dependency>
33 <dependency>
34 <groupId>org.checkerframework</groupId>
35 <artifactId>checker-qual</artifactId>
36 <version>2.0.0</version>
37 <optional>true</optional>
cushonf0e97442016-09-14 10:48:35 -070038 </dependency>
39 <dependency>
cushon667facf2016-10-20 14:07:39 -070040 <groupId>com.google.protobuf</groupId>
41 <artifactId>protobuf-java</artifactId>
cushone75cc322016-10-21 11:49:46 -070042 <version>3.1.0</version>
cushon667facf2016-10-20 14:07:39 -070043 </dependency>
44 <dependency>
cushonc5ee8762016-08-23 14:17:08 -070045 <groupId>org.ow2.asm</groupId>
cushon3d542b82017-11-29 22:26:07 -080046 <artifactId>asm</artifactId>
47 <version>${asm.version}</version>
48 <scope>test</scope>
49 </dependency>
50 <dependency>
51 <groupId>org.ow2.asm</groupId>
52 <artifactId>asm-tree</artifactId>
53 <version>${asm.version}</version>
54 <scope>test</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.ow2.asm</groupId>
58 <artifactId>asm-util</artifactId>
59 <version>${asm.version}</version>
cushon783f80f2016-09-19 14:52:44 -070060 <scope>test</scope>
61 </dependency>
62 <dependency>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -070063 <groupId>com.google.errorprone</groupId>
64 <artifactId>javac</artifactId>
65 <version>${javac.version}</version>
66 <scope>test</scope>
67 </dependency>
68 <dependency>
cushonc5ee8762016-08-23 14:17:08 -070069 <groupId>junit</groupId>
70 <artifactId>junit</artifactId>
71 <version>4.12</version>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>com.google.truth</groupId>
76 <artifactId>truth</artifactId>
cushon8eab64c2018-08-24 09:56:22 -070077 <version>0.42</version>
78 <scope>test</scope>
79 </dependency>
80 <dependency>
81 <groupId>com.google.truth.extensions</groupId>
82 <artifactId>truth-java8-extension</artifactId>
83 <version>0.42</version>
cushonc5ee8762016-08-23 14:17:08 -070084 <scope>test</scope>
85 </dependency>
86 <dependency>
87 <groupId>com.google.jimfs</groupId>
88 <artifactId>jimfs</artifactId>
89 <version>1.0</version>
90 <scope>test</scope>
91 </dependency>
92 </dependencies>
93
94 <build>
95 <sourceDirectory>java</sourceDirectory>
96 <testSourceDirectory>javatests</testSourceDirectory>
97 <testResources>
98 <testResource>
99 <directory>javatests</directory>
100 <includes>
101 <include>**/testdata/**</include>
cushon97f83722018-08-02 10:19:44 -0700102 <include>**/moduletestdata/**</include>
cushonc5ee8762016-08-23 14:17:08 -0700103 </includes>
104 </testResource>
105 </testResources>
cushon667facf2016-10-20 14:07:39 -0700106 <extensions>
107 <extension>
108 <groupId>kr.motd.maven</groupId>
109 <artifactId>os-maven-plugin</artifactId>
cushone75cc322016-10-21 11:49:46 -0700110 <version>1.4.0.Final</version>
cushon667facf2016-10-20 14:07:39 -0700111 </extension>
112 </extensions>
cushonc5ee8762016-08-23 14:17:08 -0700113 <plugins>
114 <plugin>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-compiler-plugin</artifactId>
117 <version>3.1</version>
118 <configuration>
cushon7cc90d32016-09-15 17:11:01 -0700119 <source>1.8</source>
120 <target>1.8</target>
cushonc5ee8762016-08-23 14:17:08 -0700121 <encoding>UTF-8</encoding>
122 </configuration>
123 </plugin>
cushon667facf2016-10-20 14:07:39 -0700124 <plugin>
125 <groupId>org.xolstice.maven.plugins</groupId>
126 <artifactId>protobuf-maven-plugin</artifactId>
127 <version>0.5.0</version>
128 <configuration>
129 <protoSourceRoot>proto</protoSourceRoot>
cushone75cc322016-10-21 11:49:46 -0700130 <protocArtifact>com.google.protobuf:protoc:3.1.0:exe:${os.detected.classifier}</protocArtifact>
cushon667facf2016-10-20 14:07:39 -0700131 <pluginId>grpc-java</pluginId>
132 <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.1:exe:${os.detected.classifier}</pluginArtifact>
133 </configuration>
134 <executions>
135 <execution>
136 <goals>
137 <goal>compile</goal>
138 <goal>compile-custom</goal>
139 </goals>
140 </execution>
141 </executions>
142 </plugin>
cushon42a8f882016-12-07 11:54:56 -0800143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-surefire-plugin</artifactId>
146 <version>2.19.1</version>
147 <configuration>
Liam Miller-Cushon6067ffe2017-01-21 01:01:11 -0800148 <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 -->
cushon97f83722018-08-02 10:19:44 -0700149 <argLine>-Xmx2g</argLine>
cushon42a8f882016-12-07 11:54:56 -0800150 </configuration>
151 </plugin>
Liam Miller-Cushone098b2a2018-09-09 17:14:19 -0700152 <plugin>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-shade-plugin</artifactId>
155 <version>2.4.3</version>
156 <executions>
157 <execution>
158 <id>shade-all-deps</id>
159 <phase>package</phase>
160 <goals>
161 <goal>shade</goal>
162 </goals>
163 <configuration>
164 <shadedArtifactAttached>true</shadedArtifactAttached>
165 <shadedClassifierName>all-deps</shadedClassifierName>
166 <createDependencyReducedPom>false</createDependencyReducedPom>
167 <!-- http://stackoverflow.com/a/6743609 -->
168 <filters>
169 <filter>
170 <artifact>*:*</artifact>
171 <excludes>
172 <exclude>META-INF/*.SF</exclude>
173 <exclude>META-INF/*.DSA</exclude>
174 <exclude>META-INF/*.RSA</exclude>
175 </excludes>
176 </filter>
177 </filters>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182
cushonc5ee8762016-08-23 14:17:08 -0700183 </plugins>
184 </build>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -0700185 <profiles>
186 <profile>
187 <id>java-8</id>
188 <activation>
189 <jdk>1.8</jdk>
190 </activation>
191 <build>
192 <plugins>
193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-surefire-plugin</artifactId>
196 <configuration>
197 <!-- put javac.jar on bootclasspath when executing tests -->
198 <argLine>-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</argLine>
199 </configuration>
200 </plugin>
201 </plugins>
202 </build>
203 </profile>
204 </profiles>
cushonc5ee8762016-08-23 14:17:08 -0700205</project>