> cd local-dev
> docker-compose up -d
> ./gradlew :model:flywayMigrate
> ./graldew build
We use palantir-java-format to format the code. It's a slight variation on top of google-java-format. Install the palantir-java-format plugin in Intellij to auto format your code while developing. We also use the palantir-java-format gradle plugin to auto format the code before submit your PR.
A
palantir-java-format IntelliJ plugin
is available from the plugin repository. To install it, go to your IDE's
settings and select the Plugins
category. Click the Marketplace
tab, search
for the palantir-java-format
plugin, and click the Install
button.
The plugin will be disabled by default on new projects, but as mentioned above,
if using the com.palantir.java-format
gradle plugin, it will be recommended
in IntelliJ, and automatically configured.
To manually enable it in the current project, go
to File→Settings...→palantir-java-format Settings
(or IntelliJ IDEA→Preferences...→Other Settings→palantir-java-format Settings
on macOS) and
check the Enable palantir-java-format
checkbox.
To enable it by default in new projects, use File→Other Settings→Default Settings...
.
When enabled, it will replace the normal Reformat Code
action, which can be
triggered from the Code
menu or with the Ctrl-Alt-L (by default) keyboard
shortcut.
We use Immutables annotation processors to generate simple, safe and consistent value objects.
Make sure to build the project before developing.