- open the TripleA project from source code
- install plugins, configure associated settings
- download and import IDEA settings file
Approximate time to complete: 10 - 30 minutes
- In IDEA, File > Open and select the build.gradle file that is located at the top level of the project. (Tip by selecting gradle file, IDEA will preconfigure the project as a gradle project)
Note: Settings menu is accessible via, File > Settings
or (on Mac OS): IntelliJ IDEA > Preferences
Plugin installation can be initiated from the JetBrains Marketplace web page, by clicking "Install to IDE" link from each plugin's page.
- Google Java Format plugin
- checkstyle-IDEA plugin
- after install finish configuration in: Other Settings > Checkstyle
- load checkstyle file by clicking on the "plus" and navigating to the file
.\IdeaProjects\triplea\config\checkstyle
(If you can't find it, you can download it from the repository) - set checkstyle version
- set to scan all sources
- load checkstyle file by clicking on the "plus" and navigating to the file
- after install finish configuration in: Other Settings > Checkstyle
- Lombok
- PlantUML Integration
- GraphViz also needs to be installed: https://graphviz.org/download/
Find your IDEA vmoptions file with: find ~ -name "*vmoptions"
(eg: ./.config/JetBrains/IntelliJIdea2022.3/idea64.vmoptions)
Add the following to your vmoptions file:
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED