datahub/docs/developers.md

45 lines
1.4 KiB
Markdown
Raw Normal View History

# DataHub Developer's Guide
2020-03-21 15:54:15 -07:00
## Building the Project
Fork and clone the repository if haven't done so already
```
git clone https://github.com/{username}/datahub.git
```
Change into the repository's root directory
```
cd datahub
```
Use [gradle wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) to build the project
```
./gradlew build
```
## IDE Support
The recommended IDE for DataHub development is [IntelliJ IDEA](https://www.jetbrains.com/idea/).
You can run the following command to generate or update the IntelliJ project file
```
./gradlew idea
```
Open `datahub.ipr` in IntelliJ to start developing!
## Common Build Issues
### Getting `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
```
java --version
```
While it may be possible to build and run DataHub using newer versions of Java, we currently only support [Java 1.8](https://www.oracle.com/java/technologies/javase-jdk8-downloads.html) (aka Java 8).
2020-03-21 16:03:28 -07:00
### Getting `cannot find symbol` error for `javax.annotation.Generated`
Similar to the previous issue. Please use Java 1.8 to build the project.
2020-03-21 15:54:15 -07:00
### `:metadata-models:generateDataTemplate` task fails with `java.nio.file.InvalidPathException: Illegal char <:> at index XX` 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.