Child pages
  • How to build plugin
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

How to build plugin

  • Check out the Groovy project from http://svn.jetbrains.org/idea/Trunk/bundled/groovy/
  • Update to a new EAP of IntelliJ IDEA
  • Open the Groovy.ipr file with IDEA
  • If you receive a warning for a TEMPLATE path variable: just set the variable to a local path
  • Accept any new Groovy facets that are discovered when the project opens
  • View the Project Structure
    • Select IntelliJ IDEA SDK as Project JDK
    • In the "rt" module:
      • Add some Java 1.4 JDK for rt module
      • Add groovy.jar from Groovy distribution as a library to rt module
    • In Platform Settings:
      • Add IDEA_HOME/lib/openapi.jar to SDK classpath
      • Add IDEA_HOME/lib/annotations.jar to SDK classpath
      • Add IDEA_HOME/lib/util.jar to SDK classpath
      • Add IDEA_HOME/lib/extensions.jar to SDK classpath
      • Add IDEA_HOME/lib/jdom.jar to SDK classpath
      • Add IDEA_HOME/lib/trove4j.jar to SDK classpath
      • Add IDEA_HOME/lib/idea.jar to SDK classpath
      • Add IDEA_HOME/lib/ant/lib/ant.jar to SDK classpath
      • Add IDEA_HOME/plugins/JavaScriptLanguage/lib/JavascriptLanguage.jar to SDK classpath
      • Add IDEA_HOME/plugins/CSS/lib/css.jar and css-openapi.jar to SDK classpath
      • Add IDEA_HOME/plugins/JavaEE/lib/javaee-impl.jar and javaee-openapi.jar to SDK classpath
      • Add IDEA_HOME/plugins/Spring/lib/spring.jar to SDK classpath
      • Add tools.jar (for Windows) or classes.jar (for Mac) from your Java SDK directory to the current IntelliJ IDEA SDK classpath
  • Run generate.lexer task of ant buildfile build.xml placed in src directory of project
  • Run the make project command from IDEA's Build menu
  • Run the 'Prepare All Plugin Modules for Deployment' command from IDEA's Build menu
  • A zip file will be generated in the project directory. Exit IDEA and unzip it to the IDEA_HOME/plugins directory
  • Restart IDEA
  • No labels