cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 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/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 | |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 17 | <properties> |
cushon | 04ebb17 | 2018-08-08 10:53:04 -0700 | [diff] [blame] | 18 | <asm.version>6.2.1</asm.version> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 19 | <javac.version>9+181-r4173-1</javac.version> |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 20 | </properties> |
| 21 | |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 22 | <dependencies> |
| 23 | <dependency> |
| 24 | <groupId>com.google.guava</groupId> |
| 25 | <artifactId>guava</artifactId> |
cushon | 8eab64c | 2018-08-24 09:56:22 -0700 | [diff] [blame] | 26 | <version>25.1-jre</version> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 27 | </dependency> |
| 28 | <dependency> |
cushon | f0e9744 | 2016-09-14 10:48:35 -0700 | [diff] [blame] | 29 | <groupId>com.google.errorprone</groupId> |
| 30 | <artifactId>error_prone_annotations</artifactId> |
cushon | d0fcced | 2018-04-09 22:38:11 -0700 | [diff] [blame] | 31 | <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> |
cushon | f0e9744 | 2016-09-14 10:48:35 -0700 | [diff] [blame] | 38 | </dependency> |
| 39 | <dependency> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 40 | <groupId>com.google.protobuf</groupId> |
| 41 | <artifactId>protobuf-java</artifactId> |
cushon | e75cc32 | 2016-10-21 11:49:46 -0700 | [diff] [blame] | 42 | <version>3.1.0</version> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 43 | </dependency> |
| 44 | <dependency> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 45 | <groupId>org.ow2.asm</groupId> |
cushon | 3d542b8 | 2017-11-29 22:26:07 -0800 | [diff] [blame] | 46 | <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> |
cushon | 783f80f | 2016-09-19 14:52:44 -0700 | [diff] [blame] | 60 | <scope>test</scope> |
| 61 | </dependency> |
| 62 | <dependency> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 63 | <groupId>com.google.errorprone</groupId> |
| 64 | <artifactId>javac</artifactId> |
| 65 | <version>${javac.version}</version> |
| 66 | <scope>test</scope> |
| 67 | </dependency> |
| 68 | <dependency> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 69 | <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> |
cushon | 8eab64c | 2018-08-24 09:56:22 -0700 | [diff] [blame] | 77 | <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> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 84 | <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> |
cushon | 97f8372 | 2018-08-02 10:19:44 -0700 | [diff] [blame] | 102 | <include>**/moduletestdata/**</include> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 103 | </includes> |
| 104 | </testResource> |
| 105 | </testResources> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 106 | <extensions> |
| 107 | <extension> |
| 108 | <groupId>kr.motd.maven</groupId> |
| 109 | <artifactId>os-maven-plugin</artifactId> |
cushon | e75cc32 | 2016-10-21 11:49:46 -0700 | [diff] [blame] | 110 | <version>1.4.0.Final</version> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 111 | </extension> |
| 112 | </extensions> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 113 | <plugins> |
| 114 | <plugin> |
| 115 | <groupId>org.apache.maven.plugins</groupId> |
| 116 | <artifactId>maven-compiler-plugin</artifactId> |
| 117 | <version>3.1</version> |
| 118 | <configuration> |
cushon | 7cc90d3 | 2016-09-15 17:11:01 -0700 | [diff] [blame] | 119 | <source>1.8</source> |
| 120 | <target>1.8</target> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 121 | <encoding>UTF-8</encoding> |
| 122 | </configuration> |
| 123 | </plugin> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 124 | <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> |
cushon | e75cc32 | 2016-10-21 11:49:46 -0700 | [diff] [blame] | 130 | <protocArtifact>com.google.protobuf:protoc:3.1.0:exe:${os.detected.classifier}</protocArtifact> |
cushon | 667facf | 2016-10-20 14:07:39 -0700 | [diff] [blame] | 131 | <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> |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 143 | <plugin> |
| 144 | <groupId>org.apache.maven.plugins</groupId> |
| 145 | <artifactId>maven-surefire-plugin</artifactId> |
| 146 | <version>2.19.1</version> |
| 147 | <configuration> |
Liam Miller-Cushon | 6067ffe | 2017-01-21 01:01:11 -0800 | [diff] [blame] | 148 | <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 --> |
cushon | 97f8372 | 2018-08-02 10:19:44 -0700 | [diff] [blame] | 149 | <argLine>-Xmx2g</argLine> |
cushon | 42a8f88 | 2016-12-07 11:54:56 -0800 | [diff] [blame] | 150 | </configuration> |
| 151 | </plugin> |
Liam Miller-Cushon | e098b2a | 2018-09-09 17:14:19 -0700 | [diff] [blame^] | 152 | <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 | |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 183 | </plugins> |
| 184 | </build> |
Liam Miller-Cushon | b594e4b | 2018-09-09 16:56:59 -0700 | [diff] [blame] | 185 | <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> |
cushon | c5ee876 | 2016-08-23 14:17:08 -0700 | [diff] [blame] | 205 | </project> |