Skip to content

handong890/kotlin-eclipse

 
 

Repository files navigation

Kotlin for Eclipse

Welcome to Kotlin for Eclipse project! Some handy links:

Installation

To give it a try you will need a clean installation of Eclipse Luna. The Kotlin plugin is available from the Eclipse Marketplace. The easiest way to install the Kotlin plugin is to drag-and-drop this button into a running Eclipse window:

Drag to your running Eclipse workspace to install Kotlin Plugin for Eclipse

Alternatively, you can use Help -> Eclipse Marketplace… menu, or the following update site:

https://dl.bintray.com/jetbrains/kotlin/eclipse-plugin/last/

###Building and Development

Eclipse Luna SR2 (4.4.2) is the recomended way to build and develop the kotlin-eclipse project so far. We recommend the Eclipse SDK version because of bundled sources for Eclipse core and JDT plugins.

In order to start development in Eclipse:

  • Install the AspectJ Eclipse plug-in for Eclipse 4.4. To install AJDT 2.2.4 use the following update site:

     http://download.eclipse.org/tools/ajdt/44/dev/update
    
  • Since Kotlin plugin contains code written in Kotlin itself, you will also need a Kotlin plugin to build the project in Eclipse. To install the Kotlin Eclipse plugin use the following update site:

     https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_EclipsePlugin/bootstrap.tcbuildtag/
    
  • Since Kotlin plugin uses weaving, you need to launch the project with weaving enabled. Installation of Equinox Weaving Launcher will add two additional launch configurations types for running plugin and for testing. To install the Equinox Weaving Launcher you can use the following update site:

     http://download.scala-ide.org/plugins/equinox-weaving-launcher/releases/site/
    
  • Import plugin projects from the cloned repository into your workspace

     File -> Import -> Existing Projects into Workspace
    
  • Run the launch configuration to download the Kotlin compiler. It will be used as a bundled compiler in built plugin and as a library during development.

     kotlin-bundled-compiler/Get Bundled Kotlin.launch -> Run As -> Get Bundled Kotlin
    
  • Run another instance of Eclipse with the Kotlin plugin inside

     kotlin-eclipse-ui -> Run As -> Eclipse Weaving enabled Eclipse Application
    

Building from the command line is also available (Note that Maven 3.0.5 is required):

cd {repository}/kotlin-bundled-compiler
ant -f get_bundled.xml  

cd {repository}
mvn install

Eclipse update sites

Latest stable release:

https://dl.bintray.com/jetbrains/kotlin/eclipse-plugin/last/

Any previously released version (replace :version with the version number):

https://dl.bintray.com/jetbrains/kotlin/eclipse-plugin/:version/

Nightly build:

https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_EclipsePlugin/.lastSuccessful/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 80.9%
  • Kotlin 18.8%
  • AspectJ 0.3%