Studio and IntelliJ IDEA configuration
Guidewire Studio is bundled with IntelliJ IDEA Community Edition. You can configure many aspects of Studio using the same configuration that you would use for the standalone IntelliJ IDEA application. Some configuration changes require special procedures.
Configure Studio to use your own IntelliJ IDEA installation
Guidewire Studio can run with your own installation of IntelliJ IDEA instead of the bundled one.
About this task
Studio can run with either IntelliJ IDEA Community Edition or Ultimate Edition. To use the Ultimate Edition, you must obtain your own license for it from IntelliJ. For information about the supported versions of IntelliJ IDEA, visit the Guidewire Community and search for knowledge article 1005, “Supported Software Components”.
- If IDEA_HOME is set
- Studio runs the IntelliJ IDEA installation at the path specified by IDEA_HOME. If a compatible release of IntelliJ IDEA is not installed at that location, then Studio reports an error.
- If IDEA_HOME is not set
- Studio runs the bundled IntelliJ.
Procedure
-
Set the environment variable IDEA_HOME to the path of your
IntelliJ IDEA installation directory.
For example: C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.5
- Run Guidewire Studio.
- If running with IntelliJ IDEA Ultimate Edition, enter your license information when prompted.
Set properties in the bundled IntelliJ IDEA
In the IntelliJ IDEA that is bundled with Studio, you must use a special procedure to set IntelliJ IDEA properties.
About this task
In the standalone IntelliJ IDEA application, you can set various properties by editing the idea.properties file. In IntelliJ IDEA bundled with Guidewire Studio, you cannot edit idea.properties directly. Instead, do the following:
Procedure
-
Edit the file
PolicyCenter/modules/script/gw-build.gradle. -
Locate the
studiosection:studio { ... } -
Within this section, set any properties that are valid in the idea.properties file by adding a statement in the
following format:
ideaProperties["property_name"] = "property_value"For example, to disable the IntelliJ IDEA cycle buffer, set the following:ideaProperties["idea.cycle.buffer.size"] = "disabled"Note: Do not modify other sections of thegw-build.gradlefile. - Restart Studio.
