Introduced bare kotlin compiler plugin for IntelliJ IDEA developers.
This commit is contained in:
Generated
+37
@@ -0,0 +1,37 @@
|
|||||||
|
<component name="ArtifactManager">
|
||||||
|
<artifact name="KotlinBarePlugin">
|
||||||
|
<output-path>$PROJECT_DIR$/out/artifacts</output-path>
|
||||||
|
<root id="root">
|
||||||
|
<element id="directory" name="BareKotlin">
|
||||||
|
<element id="directory" name="lib">
|
||||||
|
<element id="archive" name="kotlin-bare-plugin.jar">
|
||||||
|
<element id="module-output" name="bare-plugin" />
|
||||||
|
<element id="module-output" name="descriptor.loader.java" />
|
||||||
|
<element id="module-output" name="frontend.java" />
|
||||||
|
<element id="module-output" name="serialization.java" />
|
||||||
|
<element id="module-output" name="descriptors" />
|
||||||
|
</element>
|
||||||
|
<element id="directory" name="jps">
|
||||||
|
<element id="archive" name="kotlin-jps-plugin.jar">
|
||||||
|
<element id="module-output" name="jps-plugin" />
|
||||||
|
<element id="directory" name="META-INF">
|
||||||
|
<element id="dir-copy" path="$PROJECT_DIR$/jps-plugin/src/META-INF" />
|
||||||
|
</element>
|
||||||
|
<element id="module-output" name="ide-compiler-runner" />
|
||||||
|
<element id="module-output" name="cli-common" />
|
||||||
|
<element id="module-output" name="util" />
|
||||||
|
<element id="module-output" name="preloader" />
|
||||||
|
<element id="file-copy" path="$PROJECT_DIR$/resources/manifest.properties" />
|
||||||
|
<element id="extracted-dir" path="$PROJECT_DIR$/dependencies/cli-parser-1.1.1.jar" path-in-jar="/" />
|
||||||
|
<element id="module-output" name="util.runtime" />
|
||||||
|
</element>
|
||||||
|
</element>
|
||||||
|
<element id="file-copy" path="$PROJECT_DIR$/dist/kotlinc/lib/kotlin-runtime.jar" />
|
||||||
|
</element>
|
||||||
|
<element id="directory" name="kotlinc">
|
||||||
|
<element id="dir-copy" path="$PROJECT_DIR$/dist/kotlinc" />
|
||||||
|
</element>
|
||||||
|
</element>
|
||||||
|
</root>
|
||||||
|
</artifact>
|
||||||
|
</component>
|
||||||
Generated
+1
@@ -7,6 +7,7 @@
|
|||||||
<module fileurl="file://$PROJECT_DIR$/compiler/android-tests/android-tests.iml" filepath="$PROJECT_DIR$/compiler/android-tests/android-tests.iml" group="compiler" />
|
<module fileurl="file://$PROJECT_DIR$/compiler/android-tests/android-tests.iml" filepath="$PROJECT_DIR$/compiler/android-tests/android-tests.iml" group="compiler" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/compiler/backend/backend.iml" filepath="$PROJECT_DIR$/compiler/backend/backend.iml" group="compiler/java" />
|
<module fileurl="file://$PROJECT_DIR$/compiler/backend/backend.iml" filepath="$PROJECT_DIR$/compiler/backend/backend.iml" group="compiler/java" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/compiler/backend-common/backend-common.iml" filepath="$PROJECT_DIR$/compiler/backend-common/backend-common.iml" group="compiler" />
|
<module fileurl="file://$PROJECT_DIR$/compiler/backend-common/backend-common.iml" filepath="$PROJECT_DIR$/compiler/backend-common/backend-common.iml" group="compiler" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/jps-plugin/bare-plugin/bare-plugin.iml" filepath="$PROJECT_DIR$/jps-plugin/bare-plugin/bare-plugin.iml" group="ide/jps" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/build-tools/build-tools.iml" filepath="$PROJECT_DIR$/build-tools/build-tools.iml" />
|
<module fileurl="file://$PROJECT_DIR$/build-tools/build-tools.iml" filepath="$PROJECT_DIR$/build-tools/build-tools.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/core/builtins/builtins.iml" filepath="$PROJECT_DIR$/core/builtins/builtins.iml" group="core" />
|
<module fileurl="file://$PROJECT_DIR$/core/builtins/builtins.iml" filepath="$PROJECT_DIR$/core/builtins/builtins.iml" group="core" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/compiler/builtins-serializer/builtins-serializer.iml" filepath="$PROJECT_DIR$/compiler/builtins-serializer/builtins-serializer.iml" group="compiler/cli" />
|
<module fileurl="file://$PROJECT_DIR$/compiler/builtins-serializer/builtins-serializer.iml" filepath="$PROJECT_DIR$/compiler/builtins-serializer/builtins-serializer.iml" group="compiler/cli" />
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="library" name="kotlin-runtime" level="project" />
|
||||||
|
<orderEntry type="module" module-name="jps-plugin" />
|
||||||
|
<orderEntry type="library" name="idea-full" level="project" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
|
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<idea-plugin version="2" url="http://kotlin.jetbrains.org">
|
||||||
|
<id>org.jetbrains.kotlin.bare</id>
|
||||||
|
|
||||||
|
<name>Kotlin Bare Compiler for IntelliJ IDEA</name>
|
||||||
|
<description>
|
||||||
|
This plugin is intended for IntelliJ IDEA developers only. It should be installed along with main Kotlin plugin.
|
||||||
|
When main Kotlin plugin is disabled due to incompatibility with bleeding edge IntelliJ IDEA,
|
||||||
|
this plugin will still compile Kotlin sources.
|
||||||
|
<br />
|
||||||
|
This plugin is only capable of compiling Kotlin code. All highlighting, inspections, refactorings are disabled.
|
||||||
|
</description>
|
||||||
|
<version>@snapshot@</version>
|
||||||
|
<vendor url="http://www.jetbrains.com">JetBrains Inc.</vendor>
|
||||||
|
|
||||||
|
<idea-version since-build="138.977" until-build="999.9999"/>
|
||||||
|
|
||||||
|
<application-components>
|
||||||
|
<component>
|
||||||
|
<implementation-class>org.jetbrains.jet.plugin.bare.BareJpsPluginRegistrar</implementation-class>
|
||||||
|
</component>
|
||||||
|
</application-components>
|
||||||
|
</idea-plugin>
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2014 JetBrains s.r.o.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.jet.plugin.bare
|
||||||
|
|
||||||
|
import com.intellij.compiler.server.CompileServerPlugin
|
||||||
|
import com.intellij.ide.plugins.IdeaPluginDescriptor
|
||||||
|
import com.intellij.ide.plugins.PluginManager
|
||||||
|
import com.intellij.openapi.components.ApplicationComponent
|
||||||
|
import com.intellij.openapi.extensions.Extensions
|
||||||
|
import com.intellij.openapi.extensions.PluginId
|
||||||
|
|
||||||
|
public class BareJpsPluginRegistrar : ApplicationComponent {
|
||||||
|
override fun initComponent() {
|
||||||
|
val mainKotlinPlugin = PluginManager.getPlugin(PluginId.getId("org.jetbrains.kotlin"))
|
||||||
|
|
||||||
|
if (mainKotlinPlugin != null && mainKotlinPlugin.isEnabled()) {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
val compileServerPlugin = CompileServerPlugin()
|
||||||
|
compileServerPlugin.setClasspath("jps/kotlin-jps-plugin.jar;kotlin-runtime.jar;kotlin-bare-plugin.jar")
|
||||||
|
compileServerPlugin.setPluginDescriptor(PluginManager.getPlugin(PluginId.getId("org.jetbrains.kotlin.bare")))
|
||||||
|
|
||||||
|
Extensions.getRootArea()
|
||||||
|
.getExtensionPoint(CompileServerPlugin.EP_NAME)
|
||||||
|
.registerExtension(compileServerPlugin)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun disposeComponent() {
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getComponentName(): String {
|
||||||
|
return javaClass.getName()
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user