Permalink
Browse files

Extract go language support core plugin descriptor

  • Loading branch information...
1 parent b4d4339 commit 8c59fb29368f8d5cdc1949a00eb6dc2021b0858e @zolotov zolotov committed Oct 4, 2016
Showing with 50 additions and 25 deletions.
  1. +1 −1 build.gradle
  2. +47 −0 pluginResources/META-INF/plugin.xml
  3. +2 −24 resources/META-INF/{plugin.xml → gogland.xml}
View
@@ -40,7 +40,7 @@ allprojects {
sourceSets {
main {
java.srcDirs 'src', 'gen'
- resources.srcDir 'resources'
+ resources.srcDirs 'resources', 'pluginResources'
}
test {
java.srcDir 'tests'
@@ -0,0 +1,47 @@
+<!--
+ ~ Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<idea-plugin version="2" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <id>ro.redeul.google.go</id>
+ <name>Go</name>
+ <version>1.0</version>
+ <vendor url="https://github.com/go-lang-plugin-org"/>
+ <category>Custom Languages</category>
+
+ <description><![CDATA[
+ Support for Go programming language.
+ ]]></description>
+
+ <change-notes>
+ <![CDATA[
+ ]]>
+ </change-notes>
+
+ <depends>com.intellij.modules.lang</depends>
+ <depends optional="true" config-file="java-deps.xml">com.intellij.modules.java</depends>
+ <depends optional="true" config-file="coverage.xml">com.intellij.modules.coverage</depends>
+ <xi:include href="gogland.xml" xpointer="xpointer(/idea-plugin/*)">
+ <xi:fallback>
+ <xi:include href="/META-INF/gogland.xml" xpointer="xpointer(/idea-plugin/*)"/>
+ </xi:fallback>
+ </xi:include>
+
+ <application-components>
+ <component>
+ <implementation-class>com.goide.UpdateComponent</implementation-class>
+ </component>
+ </application-components>
+</idea-plugin>
@@ -15,24 +15,6 @@
-->
<idea-plugin version="2" xmlns:xi="http://www.w3.org/2001/XInclude">
- <id>ro.redeul.google.go</id>
- <name>Go</name>
- <version>1.0</version>
- <vendor url="https://github.com/go-lang-plugin-org"/>
- <category>Custom Languages</category>
-
- <description><![CDATA[
- Support for Go programming language.
- ]]></description>
-
- <change-notes>
- <![CDATA[
- ]]>
- </change-notes>
-
- <depends>com.intellij.modules.lang</depends>
- <depends optional="true" config-file="java-deps.xml">com.intellij.modules.java</depends>
- <depends optional="true" config-file="coverage.xml">com.intellij.modules.coverage</depends>
<xi:include href="app-engine.xml" xpointer="xpointer(/idea-plugin/*)"/>
<!-- plan9 assembler -->
<xi:include href="plan9.xml" xpointer="xpointer(/idea-plugin/*)"/>
@@ -65,7 +47,7 @@
<applicationService serviceImplementation="com.goide.project.GoApplicationLibrariesService"/>
<projectService serviceImplementation="com.goide.project.GoProjectLibrariesService"/>
<moduleService serviceImplementation="com.goide.project.GoModuleLibrariesService"/>
- <projectConfigurable id="go" groupId="language" provider="com.goide.configuration.GoConfigurableProvider"
+ <projectConfigurable id="go" groupId="language" provider="com.goide.configuration.GoConfigurableProvider"
dynamic="true" bundle="com.goide.GoBundle"/>
<moduleService serviceImplementation="com.goide.project.GoModuleSettings"/>
@@ -411,12 +393,8 @@
<component>
<implementation-class>com.goide.ui.ProjectTutorialNotification</implementation-class>
</component>
- <component>
- <implementation-class>com.goide.UpdateComponent</implementation-class>
- </component>
</application-components>
-
<!-- GAE -->
<!-- START plugin.xml of future GAE module -->
@@ -427,4 +405,4 @@
<extensionPoint name="appengine.Extension" interface="com.intellij.appengine.AppEngineExtension"/>
</extensionPoints>
<!-- END plugin.xml of future GAE module -->
-</idea-plugin>
+</idea-plugin>

0 comments on commit 8c59fb2

Please sign in to comment.