Welcome to Kotlin! Some handy links:
To build this project, first time you try to build you need to run this:
ant -f update_dependencies.xml
which will setup the dependencies on
- intellij-core: is a part of command line compiler and contains only necessary APIs.
- idea-full: is a full blown IntelliJ IDEA Community Edition to be used in former plugin module.
Then, you need to run
ant -f build.xml
which will build the binaries of the comppiler and put them into the 'dist' directory.
The root kotlin project already has an IDEA project, you can just open it in IDEA.
Note though that you need a recent IDEA build (e.g. 11 EAP) which should not contain the Kotlin plugin!
From this root project there are Run/Debug Configurations for running IDEA or the Compiler Tests for example; so if you want to try out the latest greatest IDEA plugin
- VCS -> Git -> Pull
- Run IDEA
- a child IDEA with the Kotlin plugin will then startup
- you can now open the kotlin libraries project to then work with the various kotlin libraries etc.
In a recent IDEA 11 EAP build install the Kotlin plugin:
Preferences -> Plugins -> Browse Repositories -> Manage Repositories... -> + to add a new repository URL
You can now open any Kotlin based projects. Its advisable you don't open the root kotlin project as thats intended to be used to build the kotlin compiler and plugin itself; instead open the kotlin libraries project
The Kotlin compiler is currently all written in Java (we plan to port it to Kotlin later). So the easiest way to work on the compiler or IDEA plugin is
- download a clean IDEA 11 EAP build
- don't install the Kotlin plugin
- open the root kotlin project in IDEA (opening the kotlin directory)
You can now run the various Run/Debug Configurations such as
- IDEA
- All Compiler Tests
- All IDEA Plugin Tests
- download a clean IDEA 11 EAP build
- Preferences -> Plugins -> Browse Repositories -> Manage Repositories... -> + to add a new repository URL
- http://www.jetbrains.com/kotlin/eap-plugin-repository/updatePlugins.xml
- open the kotlin libraries project
When building the current maven plugin downloads the latest distro of Kotlin. If you want to use your own local build (done via ant dist) then try
cd libraries
mvn -PlocalKotlin