xref: /aosp_15_r20/external/google-java-format/idea_plugin/src/main/resources/META-INF/plugin.xml (revision 10816b529e1d7005ca788e7b4c5efd1c72957e26)
1<!--
2  Copyright 2020 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<idea-plugin url="https://github.com/google/google-java-format/tree/master/idea_plugin"
18  require-restart="true">
19  <id>google-java-format</id>
20  <name>google-java-format</name>
21  <vendor url="https://github.com/google/google-java-format">
22    Google
23  </vendor>
24
25  <depends>com.intellij.modules.java</depends>
26  <depends>com.intellij.modules.lang</depends>
27  <depends>com.intellij.modules.platform</depends>
28
29  <description><![CDATA[
30    Formats source code using the google-java-format tool.<p>
31
32    This plugin requires additional IDE configuration. For more information,
33    <a href="https://github.com/google/google-java-format/blob/master/README.md#intellij-jre-config">read
34    the documentation.</a>
35  ]]></description>
36  <change-notes><![CDATA[
37    <dl>
38      <dt>1.17.0.0</dt>
39      <dd>Updated to use google-java-format 1.17.0.</dd>
40      <dd>Fixed "Document is locked" errors (Thanks, <code>@facboy</code>!)</dd>
41      <dt>1.16.0.2</dt>
42      <dd>Disable AD_HOC_FORMATTING, which should stop the formatter from running so often when it wasn't specifically requested.
43      <dt>1.16.0.1</dt>
44      <dd>When the plugin isn't configured correctly, show the error on every
45      format command. Previously it was only being shown at startup and going
46      unnoticed.
47      <dt>1.16.0.0</dt>
48      <dd>Updated to use google-java-format 1.16.0.</dd>
49      <dd>Use the new IDE formatting APIs for a simplified plugin.</dd>
50      <dd>Optimize Imports now uses google-java-format.</dd>
51      <dt>1.15.0.0</dt>
52      <dd>Updated to use google-java-format 1.15.0.</dd>
53      <dt>1.14.0.0</dt>
54      <dd>Updated to use google-java-format 1.14.</dd>
55      <dt>1.13.0.0</dt>
56      <dd>Updated to use google-java-format 1.13.</dd>
57      <dt>1.12.0.0</dt>
58      <dd>Updated to use google-java-format 1.12.</dd>
59      <dt>1.11.0.0</dt>
60      <dd>Updated to use google-java-format 1.11.</dd>
61      <dt>1.10.0.0</dt>
62      <dd>Updated to use google-java-format 1.10.</dd>
63      <dt>1.9.0.0</dt>
64      <dd>Updated to use google-java-format 1.9.</dd>
65      <dt>1.8.0.1</dt>
66      <dd>Fixed support for 2020.2 IDEs.</dd>
67      <dt>1.8.0.0</dt>
68      <dd>Updated to use google-java-format 1.8.</dd>
69      <dt>1.7.0.5</dt>
70      <dd>Added a version for 2020.1+ IDEs.</dd>
71      <dt>1.7.0.4</dt>
72      <dd>Marked the plugin as being incompatible with 2020.1+ IDEs.</dd>
73      <dt>1.7.0.3</dt>
74      <dd>Fixed the plugin on 2019.3 IDEs.</dd>
75      <dt>1.7.0.2</dt>
76      <dd>Added support for all IDEs after 2017.3.</dd>
77      <dt>1.7.0.1</dt>
78      <dd>Added support for 2019.1 IDEs.</dd>
79      <dt>1.7.0.0</dt>
80      <dd>Upgraded to google-java-format 1.7.</dd>
81    </dl>
82  ]]></change-notes>
83
84  <extensions defaultExtensionNs="com.intellij">
85    <formattingService
86      implementation="com.google.googlejavaformat.intellij.GoogleJavaFormatFormattingService"/>
87    <postStartupActivity implementation="com.google.googlejavaformat.intellij.InitialConfigurationStartupActivity"/>
88    <projectConfigurable
89      instance="com.google.googlejavaformat.intellij.GoogleJavaFormatConfigurable"
90      id="google-java-format.settings"
91      displayName="google-java-format Settings"/>
92    <projectService
93      serviceImplementation="com.google.googlejavaformat.intellij.GoogleJavaFormatSettings"/>
94    <projectService serviceImplementation="com.google.googlejavaformat.intellij.JreConfigurationChecker"/>
95    <notificationGroup displayType="STICKY_BALLOON" id="Enable google-java-format"
96      isLogByDefault="false"/>
97    <notificationGroup displayType="STICKY_BALLOON" id="Configure JRE for google-java-format"
98      isLogByDefault="true"/>
99    <notificationGroup displayType="BALLOON" id="google-java-format parsing error"
100      isLogByDefault="false"/>
101  </extensions>
102
103</idea-plugin>
104