Cloud Tools for IntelliJ IDEA is an open source project. We appreciate your help!
When filing an issue, please answer these questions:
- What version of IDEA are you using?
- What version of Java are you using?
- What did you do?
- What did you expect to see?
- What did you see instead?
All code can be checked out from our Github repository in the usual way. That is, clone the repository with HTTPS or SSH:
$ git clone https://github.com/GoogleCloudPlatform/gcloud-intellij.git
Cloning into 'gcloud-intellij'...
There are four modules:
- google-account-plugin:
- core-plugin: Cloud debugger and code inspections
- common-lib: Code shared between the above two
- common-test-lib: test infrastructure code
When adding new dependencies, the jar files are loaded from Maven Central when available. If Maven Central doesn't have the necessary version, the jar is placed in the third_party directory.
On Linux/Mac OS X we use gradle as our build system. Gradle is self-installing. This one command
$ ./gradlew buildPlugin
compiles everything, runs the tests, and builds the plugins. The output appears in google-account-plugin/build/distributions and core-plugin/build/distributions.
Other useful targets while developing include:
- $ ./gradlew compileJava: compile
- $ ./gradlew test: run tests
- $ ./gradlew check: run static analysis tools
- $ ./gradlew clean: remove all build artifacts
- $ ./gradlew runIdea: run IntelliJ preconfigured with the plugins from this project.
- 'New project from existing sources'
- Select the root build.gradle file to import
- Git revert changes to the .idea folder because IDEA Gradle import blows it away (https://youtrack.jetbrains.com/issue/IDEA-146295)
- Run or debug the Cloud Tools on IntelliJ run configuration
- First, please sign either individual or corporate contributor license agreement, whichever is applicable.
- Set your git user.email property to the address used for step 1. E.g.
If you're a Googler or other corporate contributor, use your corporate email address here, not your personal address.
git config --global user.email "janedoe@google.com"
- Fork the repository into your own Github account.
- Please include unit tests for all new code. (Yes, we know not all existing code has tests. We're slowly fixing that, and contributions of tests for existing code are much appreciated.
- Make sure all existing tests pass. (gradlew test)
- Associate the change with an existing issue or file a new issue.
- Create a pull request and send it to gcloud-intellij:master.
Unless otherwise noted, our source files are distributed under the Apache license found in the LICENSE file.
A number of issues in the issue tracker have been tagged as "Help Wanted." These are relatively small, self-contained changes that are good places to start.
From the Run menu select “Edit Configurations...” In the "VM options" field add -XX:MaxPermSize=256m (and if that doesn't work try 512m instead).