If the intellij.localPath attribute is set, do not set the intellij.version and intellij.type attributes as this could result in undefined behavior. If the chosen platform version is not available in the repositories, or a local installation of the target IDE is the desired type and version of the IntelliJ Platform, use intellij.localPath to point to that installation. IntelliJ Platform ConfigurationĮxplicitly setting the Setup DSL attributes intellij.version and intellij.type tells the Gradle plugin to use that configuration of the IntelliJ Platform to create the plugin project.Īll available platform versions can be browsed in the IntelliJ Platform Artifacts Repositories.
#INTELLIJ GRADLE CODE#
IntelliJ IDEA then indexes the build and any associated source code and JetBrains Java Runtime. If a matching version of the specified IntelliJ Platform is not available on the local machine, the Gradle plugin downloads the correct version and type. Using EAP versions of the IntelliJ Platform requires adding the Snapshots repository to the adle file (see IntelliJ Platform Artifacts Repositories). Configuring the Gradle Plugin for Building IntelliJ Platform Plugin Projectsīy default, the Gradle plugin will build a plugin project against the IntelliJ Platform defined by the latest EAP snapshot of the IntelliJ IDEA Community Edition. This section presents a guided tour of Gradle plugin attributes to achieve the commonly desired functionality. Guide to Configuring Gradle Plugin Functionality This documentation will focus on the configuration and use four of those tasks:Įxamples are always a helpful resource, and at the bottom of the page are links to example open-source IntelliJ Platform plugin projects based on Gradle.Īlmost every Gradle plugin attribute has a default value that will work to get started on a Gradle-based IntelliJ Platform plugin project. The table of extended Gradle Tasks has a succinct description for each task added by the plugin.
#INTELLIJ GRADLE UPGRADE#
It is advised to upgrade to the latest available version regularly.Īlso, at the top is the minimum required version of Gradle. When getting started, there are several items to note on the README page:Īt the top of the page, the latest production version of the plugin is listed. The README file has a reference for configuring these tasks. This plugin adds Gradle tasks that enable developing IntelliJ Platform plugins. The Gradle plugin is built from the open-source project gradle-intellij-plugin. When adding additional repositories to your Gradle build script, always use HTTPS protocol. It may be useful to review the IntelliJ Platform page, particularly the description of versioning in the Open Source section. The Getting Started with Gradle page provides a tutorial for creating Gradle-based IntelliJ Platform plugins. The IntelliJ IDEA Ultimate and Community editions bundle the Gradle and Plugin DevKit plugins to support Gradle-based development. This page serves as a guide to Gradle-based plugin configuration for IntelliJ Platform projects.