blob: 80de042e79d560f0a9ca426304e95579ead0d303 [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>
cushond60a47d2018-11-01 09:45:40 -070018 <asm.version>7.0</asm.version>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -070019 <javac.version>9+181-r4173-1</javac.version>
cushon78670132018-10-21 15:10:51 -070020 <guava.version>25.1-jre</guava.version>
cushon42a8f882016-12-07 11:54:56 -080021 </properties>
22
cushonc5ee8762016-08-23 14:17:08 -070023 <dependencies>
24 <dependency>
25 <groupId>com.google.guava</groupId>
26 <artifactId>guava</artifactId>
cushon78670132018-10-21 15:10:51 -070027 <version>${guava.version}</version>
cushonc5ee8762016-08-23 14:17:08 -070028 </dependency>
29 <dependency>
cushonf0e97442016-09-14 10:48:35 -070030 <groupId>com.google.errorprone</groupId>
31 <artifactId>error_prone_annotations</artifactId>
cushond0fcced2018-04-09 22:38:11 -070032 <version>2.2.0</version>
33 </dependency>
34 <dependency>
35 <groupId>org.checkerframework</groupId>
36 <artifactId>checker-qual</artifactId>
37 <version>2.0.0</version>
38 <optional>true</optional>
cushonf0e97442016-09-14 10:48:35 -070039 </dependency>
40 <dependency>
cushon667facf2016-10-20 14:07:39 -070041 <groupId>com.google.protobuf</groupId>
42 <artifactId>protobuf-java</artifactId>
cushone75cc322016-10-21 11:49:46 -070043 <version>3.1.0</version>
cushon667facf2016-10-20 14:07:39 -070044 </dependency>
45 <dependency>
cushonc5ee8762016-08-23 14:17:08 -070046 <groupId>org.ow2.asm</groupId>
cushon3d542b82017-11-29 22:26:07 -080047 <artifactId>asm</artifactId>
48 <version>${asm.version}</version>
49 <scope>test</scope>
50 </dependency>
51 <dependency>
52 <groupId>org.ow2.asm</groupId>
53 <artifactId>asm-tree</artifactId>
54 <version>${asm.version}</version>
55 <scope>test</scope>
56 </dependency>
57 <dependency>
58 <groupId>org.ow2.asm</groupId>
59 <artifactId>asm-util</artifactId>
60 <version>${asm.version}</version>
cushon783f80f2016-09-19 14:52:44 -070061 <scope>test</scope>
62 </dependency>
63 <dependency>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -070064 <groupId>com.google.errorprone</groupId>
65 <artifactId>javac</artifactId>
66 <version>${javac.version}</version>
67 <scope>test</scope>
68 </dependency>
69 <dependency>
cushonc5ee8762016-08-23 14:17:08 -070070 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
72 <version>4.12</version>
73 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>com.google.truth</groupId>
77 <artifactId>truth</artifactId>
cushon8eab64c2018-08-24 09:56:22 -070078 <version>0.42</version>
79 <scope>test</scope>
80 </dependency>
81 <dependency>
82 <groupId>com.google.truth.extensions</groupId>
83 <artifactId>truth-java8-extension</artifactId>
84 <version>0.42</version>
cushonc5ee8762016-08-23 14:17:08 -070085 <scope>test</scope>
86 </dependency>
87 <dependency>
88 <groupId>com.google.jimfs</groupId>
89 <artifactId>jimfs</artifactId>
90 <version>1.0</version>
91 <scope>test</scope>
92 </dependency>
cushon78670132018-10-21 15:10:51 -070093 <dependency>
94 <groupId>com.google.guava</groupId>
95 <artifactId>guava-testlib</artifactId>
96 <version>${guava.version}</version>
97 <scope>test</scope>
98 </dependency>
cushon39454052018-10-23 13:45:50 -070099 <dependency>
100 <groupId>com.google.auto.value</groupId>
101 <artifactId>auto-value</artifactId>
102 <version>1.5.3</version>
103 <scope>provided</scope>
104 </dependency>
cushonc5ee8762016-08-23 14:17:08 -0700105 </dependencies>
106
107 <build>
108 <sourceDirectory>java</sourceDirectory>
109 <testSourceDirectory>javatests</testSourceDirectory>
110 <testResources>
111 <testResource>
112 <directory>javatests</directory>
113 <includes>
114 <include>**/testdata/**</include>
cushon97f83722018-08-02 10:19:44 -0700115 <include>**/moduletestdata/**</include>
cushonc5ee8762016-08-23 14:17:08 -0700116 </includes>
117 </testResource>
118 </testResources>
cushon667facf2016-10-20 14:07:39 -0700119 <extensions>
120 <extension>
121 <groupId>kr.motd.maven</groupId>
122 <artifactId>os-maven-plugin</artifactId>
cushone75cc322016-10-21 11:49:46 -0700123 <version>1.4.0.Final</version>
cushon667facf2016-10-20 14:07:39 -0700124 </extension>
125 </extensions>
cushonc5ee8762016-08-23 14:17:08 -0700126 <plugins>
127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-compiler-plugin</artifactId>
Liam Miller-Cushondb608382018-10-17 21:33:39 -0700130 <version>3.6.2</version>
cushonc5ee8762016-08-23 14:17:08 -0700131 <configuration>
Liam Miller-Cushondb608382018-10-17 21:33:39 -0700132 <fork>true</fork>
cushon7cc90d32016-09-15 17:11:01 -0700133 <source>1.8</source>
134 <target>1.8</target>
cushonc5ee8762016-08-23 14:17:08 -0700135 <encoding>UTF-8</encoding>
Liam Miller-Cushondb608382018-10-17 21:33:39 -0700136 <compilerArgument>-parameters</compilerArgument>
137 <testCompilerArgument>-parameters</testCompilerArgument>
cushonc5ee8762016-08-23 14:17:08 -0700138 </configuration>
139 </plugin>
cushon667facf2016-10-20 14:07:39 -0700140 <plugin>
141 <groupId>org.xolstice.maven.plugins</groupId>
142 <artifactId>protobuf-maven-plugin</artifactId>
143 <version>0.5.0</version>
144 <configuration>
145 <protoSourceRoot>proto</protoSourceRoot>
cushone75cc322016-10-21 11:49:46 -0700146 <protocArtifact>com.google.protobuf:protoc:3.1.0:exe:${os.detected.classifier}</protocArtifact>
cushon667facf2016-10-20 14:07:39 -0700147 <pluginId>grpc-java</pluginId>
148 <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.1:exe:${os.detected.classifier}</pluginArtifact>
149 </configuration>
150 <executions>
151 <execution>
152 <goals>
153 <goal>compile</goal>
154 <goal>compile-custom</goal>
155 </goals>
156 </execution>
157 </executions>
158 </plugin>
cushon42a8f882016-12-07 11:54:56 -0800159 <plugin>
160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-surefire-plugin</artifactId>
162 <version>2.19.1</version>
163 <configuration>
Liam Miller-Cushon6067ffe2017-01-21 01:01:11 -0800164 <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 -->
cushon97f83722018-08-02 10:19:44 -0700165 <argLine>-Xmx2g</argLine>
cushon42a8f882016-12-07 11:54:56 -0800166 </configuration>
167 </plugin>
Liam Miller-Cushone098b2a2018-09-09 17:14:19 -0700168 <plugin>
169 <groupId>org.apache.maven.plugins</groupId>
170 <artifactId>maven-shade-plugin</artifactId>
171 <version>2.4.3</version>
172 <executions>
173 <execution>
174 <id>shade-all-deps</id>
175 <phase>package</phase>
176 <goals>
177 <goal>shade</goal>
178 </goals>
179 <configuration>
180 <shadedArtifactAttached>true</shadedArtifactAttached>
181 <shadedClassifierName>all-deps</shadedClassifierName>
182 <createDependencyReducedPom>false</createDependencyReducedPom>
183 <!-- http://stackoverflow.com/a/6743609 -->
184 <filters>
185 <filter>
186 <artifact>*:*</artifact>
187 <excludes>
188 <exclude>META-INF/*.SF</exclude>
189 <exclude>META-INF/*.DSA</exclude>
190 <exclude>META-INF/*.RSA</exclude>
191 </excludes>
192 </filter>
193 </filters>
194 </configuration>
195 </execution>
196 </executions>
197 </plugin>
198
cushonc5ee8762016-08-23 14:17:08 -0700199 </plugins>
200 </build>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -0700201 <profiles>
202 <profile>
203 <id>java-8</id>
204 <activation>
205 <jdk>1.8</jdk>
206 </activation>
207 <build>
208 <plugins>
209 <plugin>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-surefire-plugin</artifactId>
212 <configuration>
213 <!-- put javac.jar on bootclasspath when executing tests -->
214 <argLine>-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</argLine>
215 </configuration>
216 </plugin>
217 </plugins>
218 </build>
219 </profile>
220 </profiles>
cushonc5ee8762016-08-23 14:17:08 -0700221</project>