You require to have latest stable Open JDK 8, latest stable Apache Maven and Git installed on your machine.
ScaleCube project team uses IntelliJ IDEA as the primary IDE, although we are fine with using other development environments as long as you adhere to our coding style.
ScaleCube project team uses Google code style
Note, in the past, we used an altered version of google code style. We now comply the google style guidelines fully
The best way to go is to format your code before pushing
You can use google-java-format. There are plugins for IntelliJ and Eclipse
- Download this code style configuration Apply the configuration:
- Download this code style configuration Apply the configuration:
- Opening Eclipse settings varies per OS. For example, on macOS open
Eclipse
->Preferences
. On Ubuntu it'sWindow
->Preferences
- In the search bar on the left, type formatter, and select the
Java
->Code Style
->Formatter
menu item - Click Import and browse to the XML file you have downloaded in Step 1.
- Ensure the GoogleStyle item is selected in the Active profile section.
- The import order should be empty:
0. Create a simple file with a single line in it
0=\#
0. Open Eclipse settings (same as above) 0. In the search bar on the left, type import, and select theJava
->Code Style
->Organize Imports
menu item 0. Click Import and browse to the text file you have created in Step 1.
Whatever you do, It's OK, as long as a maven build: mvn checkstyle:check -Dcheckstyle.config.location=google_checks.xml -Dcheckstyle.skip=false
finishes successfully