blob: c7f6856988d2d7604aa597aafec1fca6c2fe6d27 [file] [log] [blame]
Colin Decker101f66f2015-04-16 14:51:06 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2015 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
18<project xmlns="http://maven.apache.org/POM/4.0.0"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
Colin Decker101f66f2015-04-16 14:51:06 -040022
23 <groupId>com.google.googlejavaformat</groupId>
24 <artifactId>google-java-format-parent</artifactId>
25 <packaging>pom</packaging>
Liam Miller-Cushon80441202021-03-31 16:26:05 -070026 <version>HEAD-SNAPSHOT</version>
Colin Decker101f66f2015-04-16 14:51:06 -040027
28 <modules>
29 <module>core</module>
Liam Miller-Cushon63bee622017-10-18 15:16:37 -070030 <module>eclipse_plugin</module>
Colin Decker101f66f2015-04-16 14:51:06 -040031 </modules>
32
33 <name>Google Java Format Parent</name>
34
35 <description>
36 A Java source code formatter that follows Google Java Style.
37 </description>
38
39 <url>https://github.com/google/google-java-format</url>
40
41 <inceptionYear>2015</inceptionYear>
42
43 <organization>
44 <name>Google Inc.</name>
45 <url>http://www.google.com/</url>
46 </organization>
47
48 <licenses>
49 <license>
50 <name>The Apache Software License, Version 2.0</name>
51 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
52 <distribution>repo</distribution>
53 </license>
54 </licenses>
55
56 <developers>
57 <developer>
58 <id>jdd</id>
59 <name>John DeTreville</name>
60 <email>jdd@google.com</email>
61 <organization>Google Inc.</organization>
62 <organizationUrl>http://www.google.com/</organizationUrl>
63 <roles>
64 <role>owner</role>
65 <role>developer</role>
66 </roles>
67 <timezone>-8</timezone>
68 </developer>
69 </developers>
70
71 <scm>
72 <url>http://github.com/google/google-java-format/</url>
73 <connection>scm:git:git://github.com/google/google-java-format.git</connection>
74 <developerConnection>scm:git:ssh://git@github.com/google/google-java-format.git</developerConnection>
75 <tag>HEAD</tag>
76 </scm>
77
78 <issueManagement>
79 <system>GitHub Issues</system>
80 <url>http://github.com/google/google-java-format/issues</url>
81 </issueManagement>
82
83 <prerequisites>
84 <maven>3.0.3</maven>
85 </prerequisites>
86
87 <properties>
88 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
cushon13f608b2016-10-25 12:31:40 -070089 <java.version>1.8</java.version>
Kurt Alfred Kluever9d2225a2022-02-01 09:32:46 -080090 <guava.version>31.0.1-jre</guava.version>
dependabot[bot]49eba6d2022-01-24 06:44:21 -080091 <truth.version>1.1.3</truth.version>
dependabot[bot]76299002022-02-09 08:14:40 -080092 <checker.version>3.21.2</checker.version>
dependabot[bot]01982302022-01-28 07:34:11 -080093 <errorprone.version>2.11.0</errorprone.version>
Liam Miller-Cushonaf804c62022-02-02 16:52:08 -080094 <auto-value.version>1.9</auto-value.version>
dependabot[bot]3de07122022-01-24 10:21:53 -080095 <auto-service.version>1.0.1</auto-service.version>
Liam Miller-Cushonaf804c62022-02-02 16:52:08 -080096 <maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version>
Liam Miller-Cushoncad842c2021-06-21 17:16:23 -070097 <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
Colin Decker101f66f2015-04-16 14:51:06 -040098 </properties>
99
100 <dependencyManagement>
101 <dependencies>
102 <!-- Required runtime dependencies -->
103 <dependency>
104 <groupId>com.google.guava</groupId>
105 <artifactId>guava</artifactId>
106 <version>${guava.version}</version>
107 </dependency>
Colin Decker101f66f2015-04-16 14:51:06 -0400108
109 <!-- Compile-time dependencies -->
110 <dependency>
cushoneb76f922020-03-13 14:03:22 -0700111 <groupId>org.checkerframework</groupId>
112 <artifactId>checker-qual</artifactId>
113 <version>${checker.version}</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400114 </dependency>
cushon22dd47f2016-02-11 11:59:19 -0800115 <dependency>
116 <groupId>com.google.errorprone</groupId>
117 <artifactId>error_prone_annotations</artifactId>
Liam Miller-Cushondd405012021-05-14 16:36:17 -0700118 <version>${errorprone.version}</version>
cushon22dd47f2016-02-11 11:59:19 -0800119 </dependency>
Liam Miller-Cushon865cff02021-08-25 09:53:59 -0700120 <dependency>
121 <groupId>com.google.auto.value</groupId>
122 <artifactId>auto-value-annotations</artifactId>
123 <version>${auto-value.version}</version>
124 </dependency>
google-java-format Team2c5d5fd2021-09-15 15:19:58 -0700125 <dependency>
126 <groupId>com.google.auto.service</groupId>
127 <artifactId>auto-service-annotations</artifactId>
128 <version>${auto-service.version}</version>
129 </dependency>
Colin Decker101f66f2015-04-16 14:51:06 -0400130
131 <!-- Test dependencies -->
132 <dependency>
133 <groupId>junit</groupId>
134 <artifactId>junit</artifactId>
Liam Miller-Cushon74ba7292022-01-22 00:00:17 -0800135 <version>4.13.2</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400136 <scope>test</scope>
137 </dependency>
138 <dependency>
139 <groupId>com.google.guava</groupId>
140 <artifactId>guava-testlib</artifactId>
141 <version>${guava.version}</version>
142 <scope>test</scope>
143 </dependency>
bcsfbbcce562015-06-18 18:10:31 -0700144 <dependency>
145 <groupId>com.google.truth</groupId>
146 <artifactId>truth</artifactId>
Liam Miller-Cushon00823e82017-10-11 19:30:25 -0700147 <version>${truth.version}</version>
bcsfbbcce562015-06-18 18:10:31 -0700148 <scope>test</scope>
149 </dependency>
Liam Miller-Cushon74ba7292022-01-22 00:00:17 -0800150 <dependency>
151 <groupId>com.google.truth.extensions</groupId>
152 <artifactId>truth-java8-extension</artifactId>
153 <version>${truth.version}</version>
154 <scope>test</scope>
155 </dependency>
Colin Decker101f66f2015-04-16 14:51:06 -0400156 </dependencies>
157 </dependencyManagement>
158
159 <build>
160 <pluginManagement>
161 <plugins>
162 <plugin>
163 <artifactId>maven-compiler-plugin</artifactId>
dependabot[bot]fa48f482022-01-24 11:50:46 -0800164 <version>3.9.0</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400165 </plugin>
166 <plugin>
167 <artifactId>maven-jar-plugin</artifactId>
dependabot[bot]d46fcf02022-01-14 16:37:06 -0800168 <version>3.2.2</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400169 </plugin>
170 <plugin>
171 <artifactId>maven-source-plugin</artifactId>
dependabot[bot]de9e3b72022-01-12 13:59:12 -0800172 <version>3.2.1</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400173 </plugin>
174 <plugin>
175 <artifactId>maven-javadoc-plugin</artifactId>
Liam Miller-Cushonaf804c62022-02-02 16:52:08 -0800176 <version>3.3.1</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400177 </plugin>
178 <plugin>
179 <artifactId>maven-gpg-plugin</artifactId>
dependabot[bot]8a7ab0d2022-01-24 06:43:36 -0800180 <version>3.0.1</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400181 </plugin>
182 <plugin>
183 <groupId>org.apache.felix</groupId>
184 <artifactId>maven-bundle-plugin</artifactId>
Liam Miller-Cushonaf804c62022-02-02 16:52:08 -0800185 <version>5.1.4</version>
Colin Decker101f66f2015-04-16 14:51:06 -0400186 </plugin>
187 </plugins>
188 </pluginManagement>
189
190 <plugins>
191 <plugin>
192 <artifactId>maven-compiler-plugin</artifactId>
193 <configuration>
194 <source>${java.version}</source>
195 <target>${java.version}</target>
Liam Miller-Cushon506875d2021-02-16 21:53:15 -0800196 <encoding>UTF-8</encoding>
Thomas Broyer92e0dfc2018-10-24 22:50:34 -0700197 <compilerArgs>
Liam Miller-Cushon506875d2021-02-16 21:53:15 -0800198 <!-- compile-time arguments for google-java-format -->
Thomas Broyer92e0dfc2018-10-24 22:50:34 -0700199 <arg>-XDcompilePolicy=simple</arg>
200 <arg>-Xplugin:ErrorProne</arg>
cushon3c191c12020-03-18 12:40:25 -0700201 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
202 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
203 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
204 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
205 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
206 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
207 <arg>--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Thomas Broyer92e0dfc2018-10-24 22:50:34 -0700208 </compilerArgs>
209 <annotationProcessorPaths>
210 <path>
211 <groupId>com.google.errorprone</groupId>
212 <artifactId>error_prone_core</artifactId>
Liam Miller-Cushondd405012021-05-14 16:36:17 -0700213 <version>${errorprone.version}</version>
Thomas Broyer92e0dfc2018-10-24 22:50:34 -0700214 </path>
Liam Miller-Cushon865cff02021-08-25 09:53:59 -0700215 <path>
216 <groupId>com.google.auto.value</groupId>
217 <artifactId>auto-value</artifactId>
218 <version>${auto-value.version}</version>
219 </path>
google-java-format Team2c5d5fd2021-09-15 15:19:58 -0700220 <path>
221 <groupId>com.google.auto.service</groupId>
222 <artifactId>auto-service</artifactId>
223 <version>${auto-service.version}</version>
224 </path>
Thomas Broyer92e0dfc2018-10-24 22:50:34 -0700225 </annotationProcessorPaths>
Colin Decker101f66f2015-04-16 14:51:06 -0400226 </configuration>
Colin Decker101f66f2015-04-16 14:51:06 -0400227 </plugin>
Liam Miller-Cushon11257b42015-05-29 20:29:23 -0700228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-jar-plugin</artifactId>
231 <configuration>
232 <archive>
233 <manifest>
234 <mainClass>com.google.googlejavaformat.java.Main</mainClass>
235 </manifest>
236 </archive>
237 </configuration>
238 </plugin>
239 <plugin>
240 <groupId>org.apache.maven.plugins</groupId>
Chris Purcell79b7f0f2015-10-28 10:39:01 +0000241 <artifactId>maven-source-plugin</artifactId>
242 <executions>
243 <execution>
244 <id>attach-sources</id>
245 <goals>
246 <goal>jar</goal>
247 </goals>
248 </execution>
249 </executions>
250 </plugin>
251 <plugin>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-javadoc-plugin</artifactId>
Liam Miller-Cushonaf804c62022-02-02 16:52:08 -0800254 <version>3.3.1</version>
Thomas Broyer92e0dfc2018-10-24 22:50:34 -0700255 <configuration>
256 <doclint>none</doclint>
257 </configuration>
Chris Purcell79b7f0f2015-10-28 10:39:01 +0000258 <executions>
259 <execution>
260 <id>attach-javadocs</id>
261 <goals>
262 <goal>jar</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
Liam Miller-Cushonaec7d5b2016-10-10 09:10:50 -0700267 <plugin>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-surefire-plugin</artifactId>
dependabot[bot]427a2bd2022-01-12 14:00:14 -0800270 <version>2.22.2</version>
Liam Miller-Cushonaec7d5b2016-10-10 09:10:50 -0700271 <configuration>
272 <!-- set heap size to work around http://github.com/travis-ci/travis-ci/issues/3396 -->
Liam Miller-Cushon5c69d8e2021-06-15 18:24:42 -0700273 <argLine>
274 -Xmx1024m
275 --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
276 --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
277 --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
278 --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
279 --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
280 --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
281 --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
282 --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
283 --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
284 --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
285 </argLine>
Liam Miller-Cushonaec7d5b2016-10-10 09:10:50 -0700286 </configuration>
287 </plugin>
Colin Decker101f66f2015-04-16 14:51:06 -0400288 </plugins>
289 </build>
Liam Miller-Cushoncad842c2021-06-21 17:16:23 -0700290
291 <distributionManagement>
292 <snapshotRepository>
293 <id>sonatype-nexus-snapshots</id>
294 <name>Sonatype Nexus Snapshots</name>
295 <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
296 </snapshotRepository>
297 <repository>
298 <id>sonatype-nexus-staging</id>
299 <name>Nexus Release Repository</name>
300 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
301 </repository>
302 </distributionManagement>
303
304 <profiles>
305 <profile>
306 <id>sonatype-oss-release</id>
307 <build>
308 <plugins>
309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-source-plugin</artifactId>
312 <version>${maven-source-plugin.version}</version>
313 <executions>
314 <execution>
315 <id>attach-sources</id>
316 <goals>
317 <goal>jar-no-fork</goal>
318 </goals>
319 </execution>
320 </executions>
321 </plugin>
322 <plugin>
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-javadoc-plugin</artifactId>
325 <version>${maven-javadoc-plugin.version}</version>
326 <executions>
327 <execution>
328 <id>attach-javadocs</id>
329 <goals>
330 <goal>jar</goal>
331 </goals>
332 </execution>
333 </executions>
334 </plugin>
335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-gpg-plugin</artifactId>
dependabot[bot]8a7ab0d2022-01-24 06:43:36 -0800338 <version>3.0.1</version>
Liam Miller-Cushoncad842c2021-06-21 17:16:23 -0700339 <executions>
340 <execution>
341 <id>sign-artifacts</id>
342 <phase>verify</phase>
343 <goals>
344 <goal>sign</goal>
345 </goals>
346 </execution>
347 </executions>
348 </plugin>
349 </plugins>
350 </build>
351 </profile>
352 </profiles>
Colin Decker101f66f2015-04-16 14:51:06 -0400353</project>