Fork and clone the repository if haven't done so already
Change into the repository's root directory
Use gradle wrapper to build the project
The recommended IDE for DataHub development is IntelliJ IDEA. You can run the following command to generate or update the IntelliJ project file
datahub.ipr in IntelliJ to start developing!
For consistency please import and auto format the code using LinkedIn IntelliJ Java style.
Unsupported class file major version 57#
You're probably using a Java version that's too new for gradle. Run the following command to check your Java version
cannot find symbol error for
Similar to the previous issue, please use Java 1.8 to build the project.
You can install multiple version of Java on a single machine and switch between them using the
JAVA_HOME environment variable. See this document for more details.
:metadata-models:generateDataTemplate task fails with
java.nio.file.InvalidPathException: Illegal char <:> at index XX or
Caused by: java.lang.IllegalArgumentException: 'other' has different root error#
This is a known issue when building the project on Windows due a bug in the Pegasus plugin. Please build on a Mac or Linux instead.
Various errors related to
generateDataTemplate or other
As we generate quite a few files from the models, it is possible that old generated files may conflict with new model changes. When this happens, a simple
./gradlew clean should reosolve the issue.
Execution failed for task ':gms:impl:checkRestModel'#
This generally means that an incompatible change was introduced to the rest.li API in GMS. You'll need to rebuild the snapshots/IDL by running the following command once
java.io.IOException: No space left on device#
This means you're running out of space on your disk to build. Please free up some space or try a different disk.