cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Eddie Aftandilian | 078b0d5 | 2020-07-13 17:43:46 -0700 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright 2020 Google Inc. |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 18 | <project |
| 19 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | |
| 24 | <groupId>com.google.turbine</groupId> |
| 25 | <artifactId>turbine</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 26 | <version>HEAD-SNAPSHOT</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 27 | |
| 28 | <name>turbine</name> |
| 29 | <description> |
| 30 | turbine is a header compiler for Java |
| 31 | </description> |
| 32 | |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 33 | <properties> |
Liam Miller-Cushon | 870707b | 2020-12-10 16:52:07 -0800 | [diff] [blame] | 34 | <asm.version>9.0</asm.version> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 35 | <javac.version>9+181-r4173-1</javac.version> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 36 | <guava.version>30.0-jre</guava.version> |
Liam Miller-Cushon | 7a5c416 | 2020-12-10 21:41:59 -0800 | [diff] [blame] | 37 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 38 | </properties> |
| 39 | |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 40 | <dependencies> |
| 41 | <dependency> |
| 42 | <groupId>com.google.guava</groupId> |
| 43 | <artifactId>guava</artifactId> |
cushon | 7867013 | 2018-10-21 15:10:51 -0700 | [diff] [blame] | 44 | <version>${guava.version}</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 45 | </dependency> |
| 46 | <dependency> |
cushon | f0e9744 | 2016-09-14 10:48:35 -0700 | [diff] [blame] | 47 | <groupId>com.google.errorprone</groupId> |
| 48 | <artifactId>error_prone_annotations</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 49 | <version>2.5.1</version> |
cushon | d0fcced | 2018-04-09 22:38:11 -0700 | [diff] [blame] | 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>org.checkerframework</groupId> |
| 53 | <artifactId>checker-qual</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 54 | <version>3.9.1</version> |
cushon | d0fcced | 2018-04-09 22:38:11 -0700 | [diff] [blame] | 55 | <optional>true</optional> |
cushon | f0e9744 | 2016-09-14 10:48:35 -0700 | [diff] [blame] | 56 | </dependency> |
| 57 | <dependency> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 58 | <groupId>com.google.protobuf</groupId> |
| 59 | <artifactId>protobuf-java</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 60 | <version>3.10.0</version> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 61 | </dependency> |
| 62 | <dependency> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 63 | <groupId>org.ow2.asm</groupId> |
cushon | 3d542b8 | 2017-11-29 22:26:07 -0800 | [diff] [blame] | 64 | <artifactId>asm</artifactId> |
| 65 | <version>${asm.version}</version> |
| 66 | <scope>test</scope> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.ow2.asm</groupId> |
| 70 | <artifactId>asm-tree</artifactId> |
| 71 | <version>${asm.version}</version> |
| 72 | <scope>test</scope> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.ow2.asm</groupId> |
| 76 | <artifactId>asm-util</artifactId> |
| 77 | <version>${asm.version}</version> |
cushon | 783f80f | 2016-09-19 14:52:44 -0700 | [diff] [blame] | 78 | <scope>test</scope> |
| 79 | </dependency> |
| 80 | <dependency> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 81 | <groupId>com.google.errorprone</groupId> |
| 82 | <artifactId>javac</artifactId> |
| 83 | <version>${javac.version}</version> |
| 84 | <scope>test</scope> |
| 85 | </dependency> |
| 86 | <dependency> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 87 | <groupId>junit</groupId> |
| 88 | <artifactId>junit</artifactId> |
Liam Miller-Cushon | 7e581be | 2020-10-13 15:20:33 -0700 | [diff] [blame] | 89 | <version>4.13.1</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 90 | <scope>test</scope> |
| 91 | </dependency> |
| 92 | <dependency> |
| 93 | <groupId>com.google.truth</groupId> |
| 94 | <artifactId>truth</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 95 | <version>1.1</version> |
cushon | 0db7a28 | 2019-08-12 10:37:45 -0700 | [diff] [blame] | 96 | <scope>test</scope> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>com.google.truth.extensions</groupId> |
| 100 | <artifactId>truth-proto-extension</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 101 | <version>1.1</version> |
cushon | 8eab64c | 2018-08-24 09:56:22 -0700 | [diff] [blame] | 102 | <scope>test</scope> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>com.google.truth.extensions</groupId> |
| 106 | <artifactId>truth-java8-extension</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 107 | <version>1.1</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 108 | <scope>test</scope> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>com.google.jimfs</groupId> |
| 112 | <artifactId>jimfs</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 113 | <version>1.2</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 114 | <scope>test</scope> |
| 115 | </dependency> |
cushon | 7867013 | 2018-10-21 15:10:51 -0700 | [diff] [blame] | 116 | <dependency> |
| 117 | <groupId>com.google.guava</groupId> |
| 118 | <artifactId>guava-testlib</artifactId> |
| 119 | <version>${guava.version}</version> |
| 120 | <scope>test</scope> |
| 121 | </dependency> |
cushon | 3945405 | 2018-10-23 13:45:50 -0700 | [diff] [blame] | 122 | <dependency> |
| 123 | <groupId>com.google.auto.value</groupId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 124 | <artifactId>auto-value-annotations</artifactId> |
| 125 | <version>1.7.4</version> |
cushon | 3945405 | 2018-10-23 13:45:50 -0700 | [diff] [blame] | 126 | <scope>provided</scope> |
| 127 | </dependency> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 128 | </dependencies> |
| 129 | |
| 130 | <build> |
| 131 | <sourceDirectory>java</sourceDirectory> |
| 132 | <testSourceDirectory>javatests</testSourceDirectory> |
| 133 | <testResources> |
| 134 | <testResource> |
| 135 | <directory>javatests</directory> |
| 136 | <includes> |
| 137 | <include>**/testdata/**</include> |
cushon | 97f8372 | 2018-08-02 10:19:44 -0700 | [diff] [blame] | 138 | <include>**/moduletestdata/**</include> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 139 | </includes> |
| 140 | </testResource> |
| 141 | </testResources> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 142 | <extensions> |
| 143 | <extension> |
| 144 | <groupId>kr.motd.maven</groupId> |
| 145 | <artifactId>os-maven-plugin</artifactId> |
cushon | e75cc32 | 2016-10-21 11:49:46 -0700 | [diff] [blame] | 146 | <version>1.4.0.Final</version> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 147 | </extension> |
| 148 | </extensions> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 149 | <plugins> |
| 150 | <plugin> |
| 151 | <groupId>org.apache.maven.plugins</groupId> |
| 152 | <artifactId>maven-compiler-plugin</artifactId> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 153 | <version>3.8.0</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 154 | <configuration> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 155 | <source>8</source> |
| 156 | <target>8</target> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 157 | <encoding>UTF-8</encoding> |
Liam Miller-Cushon | 622b591 | 2021-01-22 13:10:38 -0800 | [diff] [blame] | 158 | <fork>true</fork> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 159 | <compilerArgs> |
| 160 | <arg>-parameters</arg> |
| 161 | <arg>-XDcompilePolicy=simple</arg> |
| 162 | <arg>-Xplugin:ErrorProne</arg> |
Liam Miller-Cushon | 622b591 | 2021-01-22 13:10:38 -0800 | [diff] [blame] | 163 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg> |
| 164 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> |
| 165 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg> |
| 166 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg> |
| 167 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
| 168 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg> |
| 169 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> |
| 170 | <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg> |
| 171 | <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 172 | </compilerArgs> |
| 173 | <annotationProcessorPaths> |
| 174 | <path> |
| 175 | <groupId>com.google.errorprone</groupId> |
| 176 | <artifactId>error_prone_core</artifactId> |
| 177 | <version>2.5.1</version> |
| 178 | </path> |
| 179 | <path> |
| 180 | <groupId>com.google.auto.value</groupId> |
| 181 | <artifactId>auto-value</artifactId> |
| 182 | <version>1.7.4</version> |
| 183 | </path> |
| 184 | </annotationProcessorPaths> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 185 | </configuration> |
| 186 | </plugin> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 187 | <plugin> |
| 188 | <groupId>org.xolstice.maven.plugins</groupId> |
| 189 | <artifactId>protobuf-maven-plugin</artifactId> |
| 190 | <version>0.5.0</version> |
| 191 | <configuration> |
| 192 | <protoSourceRoot>proto</protoSourceRoot> |
cushon | e75cc32 | 2016-10-21 11:49:46 -0700 | [diff] [blame] | 193 | <protocArtifact>com.google.protobuf:protoc:3.1.0:exe:${os.detected.classifier}</protocArtifact> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 194 | <pluginId>grpc-java</pluginId> |
| 195 | <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.1:exe:${os.detected.classifier}</pluginArtifact> |
| 196 | </configuration> |
| 197 | <executions> |
| 198 | <execution> |
| 199 | <goals> |
| 200 | <goal>compile</goal> |
| 201 | <goal>compile-custom</goal> |
| 202 | </goals> |
| 203 | </execution> |
| 204 | </executions> |
| 205 | </plugin> |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 206 | <plugin> |
| 207 | <groupId>org.apache.maven.plugins</groupId> |
| 208 | <artifactId>maven-surefire-plugin</artifactId> |
| 209 | <version>2.19.1</version> |
| 210 | <configuration> |
Liam Miller-Cushon | 6067ffe | 2017-01-21 01:01:11 -0800 | [diff] [blame] | 211 | <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 --> |
Liam Miller-Cushon | 622b591 | 2021-01-22 13:10:38 -0800 | [diff] [blame] | 212 | <argLine>-Xmx2g --illegal-access=permit</argLine> |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 213 | </configuration> |
| 214 | </plugin> |
Liam Miller-Cushon | e098b2a | 2018-09-09 17:14:19 -0700 | [diff] [blame] | 215 | <plugin> |
| 216 | <groupId>org.apache.maven.plugins</groupId> |
| 217 | <artifactId>maven-shade-plugin</artifactId> |
| 218 | <version>2.4.3</version> |
| 219 | <executions> |
| 220 | <execution> |
| 221 | <id>shade-all-deps</id> |
| 222 | <phase>package</phase> |
| 223 | <goals> |
| 224 | <goal>shade</goal> |
| 225 | </goals> |
| 226 | <configuration> |
| 227 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 228 | <shadedClassifierName>all-deps</shadedClassifierName> |
| 229 | <createDependencyReducedPom>false</createDependencyReducedPom> |
| 230 | <!-- http://stackoverflow.com/a/6743609 --> |
| 231 | <filters> |
| 232 | <filter> |
| 233 | <artifact>*:*</artifact> |
| 234 | <excludes> |
| 235 | <exclude>META-INF/*.SF</exclude> |
| 236 | <exclude>META-INF/*.DSA</exclude> |
| 237 | <exclude>META-INF/*.RSA</exclude> |
| 238 | </excludes> |
| 239 | </filter> |
| 240 | </filters> |
| 241 | </configuration> |
| 242 | </execution> |
| 243 | </executions> |
| 244 | </plugin> |
| 245 | |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 246 | </plugins> |
| 247 | </build> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 248 | <profiles> |
| 249 | <profile> |
| 250 | <id>java-8</id> |
| 251 | <activation> |
| 252 | <jdk>1.8</jdk> |
| 253 | </activation> |
| 254 | <build> |
| 255 | <plugins> |
| 256 | <plugin> |
| 257 | <groupId>org.apache.maven.plugins</groupId> |
| 258 | <artifactId>maven-surefire-plugin</artifactId> |
| 259 | <configuration> |
| 260 | <!-- put javac.jar on bootclasspath when executing tests --> |
| 261 | <argLine>-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</argLine> |
| 262 | </configuration> |
| 263 | </plugin> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 264 | <plugin> |
| 265 | <groupId>org.apache.maven.plugins</groupId> |
| 266 | <artifactId>maven-compiler-plugin</artifactId> |
| 267 | <configuration> |
| 268 | <fork>true</fork> |
Liam Miller-Cushon | 622b591 | 2021-01-22 13:10:38 -0800 | [diff] [blame] | 269 | <compilerArgs> |
| 270 | <arg>-parameters</arg> |
| 271 | <arg>-XDcompilePolicy=simple</arg> |
| 272 | <arg>-Xplugin:ErrorProne</arg> |
Liam Miller-Cushon | b470d53 | 2021-01-15 17:19:20 -0800 | [diff] [blame] | 273 | <arg>-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</arg> |
| 274 | </compilerArgs> |
| 275 | </configuration> |
| 276 | </plugin> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 277 | </plugins> |
| 278 | </build> |
| 279 | </profile> |
| 280 | </profiles> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 281 | </project> |