blob: ce650390f6db702dc79324823da7d857320fcb73 [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>
Liam Miller-Cushondb608382018-10-17 21:33:39 -0700117 <version>3.6.2</version>
cushonc5ee8762016-08-23 14:17:08 -0700118 <configuration>
Liam Miller-Cushondb608382018-10-17 21:33:39 -0700119 <fork>true</fork>
cushon7cc90d32016-09-15 17:11:01 -0700120 <source>1.8</source>
121 <target>1.8</target>
cushonc5ee8762016-08-23 14:17:08 -0700122 <encoding>UTF-8</encoding>
Liam Miller-Cushondb608382018-10-17 21:33:39 -0700123 <compilerArgument>-parameters</compilerArgument>
124 <testCompilerArgument>-parameters</testCompilerArgument>
cushonc5ee8762016-08-23 14:17:08 -0700125 </configuration>
126 </plugin>
cushon667facf2016-10-20 14:07:39 -0700127 <plugin>
128 <groupId>org.xolstice.maven.plugins</groupId>
129 <artifactId>protobuf-maven-plugin</artifactId>
130 <version>0.5.0</version>
131 <configuration>
132 <protoSourceRoot>proto</protoSourceRoot>
cushone75cc322016-10-21 11:49:46 -0700133 <protocArtifact>com.google.protobuf:protoc:3.1.0:exe:${os.detected.classifier}</protocArtifact>
cushon667facf2016-10-20 14:07:39 -0700134 <pluginId>grpc-java</pluginId>
135 <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.1:exe:${os.detected.classifier}</pluginArtifact>
136 </configuration>
137 <executions>
138 <execution>
139 <goals>
140 <goal>compile</goal>
141 <goal>compile-custom</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin>
cushon42a8f882016-12-07 11:54:56 -0800146 <plugin>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-surefire-plugin</artifactId>
149 <version>2.19.1</version>
150 <configuration>
Liam Miller-Cushon6067ffe2017-01-21 01:01:11 -0800151 <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 -->
cushon97f83722018-08-02 10:19:44 -0700152 <argLine>-Xmx2g</argLine>
cushon42a8f882016-12-07 11:54:56 -0800153 </configuration>
154 </plugin>
Liam Miller-Cushone098b2a2018-09-09 17:14:19 -0700155 <plugin>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-shade-plugin</artifactId>
158 <version>2.4.3</version>
159 <executions>
160 <execution>
161 <id>shade-all-deps</id>
162 <phase>package</phase>
163 <goals>
164 <goal>shade</goal>
165 </goals>
166 <configuration>
167 <shadedArtifactAttached>true</shadedArtifactAttached>
168 <shadedClassifierName>all-deps</shadedClassifierName>
169 <createDependencyReducedPom>false</createDependencyReducedPom>
170 <!-- http://stackoverflow.com/a/6743609 -->
171 <filters>
172 <filter>
173 <artifact>*:*</artifact>
174 <excludes>
175 <exclude>META-INF/*.SF</exclude>
176 <exclude>META-INF/*.DSA</exclude>
177 <exclude>META-INF/*.RSA</exclude>
178 </excludes>
179 </filter>
180 </filters>
181 </configuration>
182 </execution>
183 </executions>
184 </plugin>
185
cushonc5ee8762016-08-23 14:17:08 -0700186 </plugins>
187 </build>
Liam Miller-Cushonb594e4b2018-09-09 16:56:59 -0700188 <profiles>
189 <profile>
190 <id>java-8</id>
191 <activation>
192 <jdk>1.8</jdk>
193 </activation>
194 <build>
195 <plugins>
196 <plugin>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-surefire-plugin</artifactId>
199 <configuration>
200 <!-- put javac.jar on bootclasspath when executing tests -->
201 <argLine>-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</argLine>
202 </configuration>
203 </plugin>
204 </plugins>
205 </build>
206 </profile>
207 </profiles>
cushonc5ee8762016-08-23 14:17:08 -0700208</project>