xref: /aosp_15_r20/external/google-java-format/eclipse_plugin/pom.xml (revision 10816b529e1d7005ca788e7b4c5efd1c72957e26)
1<!--
2  ~ Copyright 2015 Google Inc.
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~     http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<project xmlns="http://maven.apache.org/POM/4.0.0"
18  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20  <modelVersion>4.0.0</modelVersion>
21
22  <groupId>com.google.googlejavaformat</groupId>
23  <artifactId>google-java-format-eclipse-plugin</artifactId>
24  <packaging>eclipse-plugin</packaging>
25  <version>1.13.0</version>
26
27  <name>Google Java Format Plugin for Eclipse 4.5+</name>
28
29  <description>
30    A Java source code formatter plugin for Eclipse that follows Google Java Style.
31  </description>
32
33  <properties>
34    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35    <tycho-version>3.0.0</tycho-version>
36  </properties>
37
38  <dependencies>
39    <dependency>
40      <groupId>com.google.googlejavaformat</groupId>
41      <artifactId>google-java-format</artifactId>
42      <version>${project.version}</version>
43    </dependency>
44  </dependencies>
45
46  <repositories>
47    <repository>
48      <id>mars</id>
49      <layout>p2</layout>
50      <url>https://download.eclipse.org/releases/mars</url>
51    </repository>
52  </repositories>
53
54  <build>
55    <plugins>
56      <plugin>
57        <groupId>org.apache.maven.plugins</groupId>
58        <artifactId>maven-dependency-plugin</artifactId>
59        <version>3.3.0</version>
60        <executions>
61          <execution>
62            <id>copy-dependencies</id>
63            <phase>initialize</phase>
64            <goals>
65              <goal>copy-dependencies</goal>
66            </goals>
67          </execution>
68        </executions>
69        <configuration>
70          <outputDirectory>lib</outputDirectory>
71          <includeScope>runtime</includeScope>
72          <stripVersion>true</stripVersion>
73          <overWriteReleases>true</overWriteReleases>
74          <overWriteSnapshots>true</overWriteSnapshots>
75          <includeArtifactIds>guava,google-java-format</includeArtifactIds>
76        </configuration>
77      </plugin>
78
79      <plugin>
80        <groupId>org.eclipse.tycho</groupId>
81        <artifactId>tycho-maven-plugin</artifactId>
82        <version>${tycho-version}</version>
83        <extensions>true</extensions>
84      </plugin>
85
86      <plugin>
87        <groupId>org.eclipse.tycho</groupId>
88        <artifactId>tycho-versions-plugin</artifactId>
89        <version>${tycho-version}</version>
90        <configuration>
91          <newVersion>${project.version}</newVersion>
92        </configuration>
93      </plugin>
94
95      <plugin>
96        <groupId>org.eclipse.tycho</groupId>
97        <artifactId>target-platform-configuration</artifactId>
98        <version>${tycho-version}</version>
99        <configuration>
100          <environments>
101            <environment>
102              <os>linux</os>
103              <ws>gtk</ws>
104              <arch>x86</arch>
105            </environment>
106            <environment>
107              <os>linux</os>
108              <ws>gtk</ws>
109              <arch>x86_64</arch>
110            </environment>
111            <environment>
112              <os>win32</os>
113              <ws>win32</ws>
114              <arch>x86</arch>
115            </environment>
116            <environment>
117              <os>win32</os>
118              <ws>win32</ws>
119              <arch>x86_64</arch>
120            </environment>
121            <environment>
122              <os>macosx</os>
123              <ws>cocoa</ws>
124              <arch>x86_64</arch>
125            </environment>
126          </environments>
127        </configuration>
128      </plugin>
129
130      <plugin>
131        <groupId>org.apache.maven.plugins</groupId>
132        <artifactId>maven-compiler-plugin</artifactId>
133        <version>3.7.0</version>
134        <configuration>
135          <source>11</source>
136          <target>11</target>
137        </configuration>
138      </plugin>
139    </plugins>
140  </build>
141</project>
142