First, you need to install the prerequisite software.
-
JDK 11 - Starting with IntelliJ IDEA 20.3, you need to be running with a version of JDK 11.
-
Git repo - clone the Git repo from GitHub.
$ git clone (repository name)
From the root directory, simply run:
$ ./gradlew build
For the most part, the project is now easy to get running from within IntelliJ. You should be able to open the cloned directory as a project in IntelliJ and start running.
You may need to adjust the project SDK dependency to be a JDK 11 jvm on your local computer. Additionally, the "plugin" module will need to use your actively running IntelliJ directory as the JDK.
If you have a bug fix or feature that you'd like to see added to the plugin, please follow these steps:
- Fork the project on Github.
- Make your changes in your fork, making sure to include the Apache license header and follow the formatting standard for the project.
- Commit your changes and push them up into your Github repository.
- Make a pull request in the parent project.
Because the IntelliJ libraries are built from source, new versions must be carefully constructed using the general instructions provided in the README.md file.
When new versions of the Perforce C client source are released, the script generate-error-codes.py should be run. This will update the message code ID interface. It's good practice to compare the update against the previous version, so that changes in the code can be tracked.
The source code contains JavaDoc and comments to help in understanding the immediate concerns of the code, but the general overall documentation is located under the developer documentation. Expect this to be moderately out of date.