|
1 |
| -# Contributing to Start DB |
| 1 | +# Contributing to START-DB |
| 2 | + |
| 3 | +### Running environment setup |
| 4 | + |
| 5 | +Running environment need to be setup before build or test START-DB. |
| 6 | + |
| 7 | +Please follow [Docker Setup](docker/docker-compose.md) and confirm |
| 8 | + |
| 9 | +``` |
| 10 | +mvn clean package |
| 11 | +``` |
| 12 | + |
| 13 | +run successfully. |
2 | 14 |
|
3 | 15 | ### Importing the project into IntelliJ IDEA
|
4 |
| -Start DB builds using Java 8. When importing into IntelliJ you will need |
| 16 | + |
| 17 | +START-DB builds using Java 8. When importing into IntelliJ you will need |
5 | 18 | to define an appropriate SDK.or more details
|
6 | 19 | on defining an SDK in IntelliJ please refer to [their documentation](https://www.jetbrains.com/help/idea/sdk.html#define-sdk).
|
7 | 20 |
|
8 |
| -You can import the Start DB project into IntelliJ IDEA via: |
| 21 | +You can import the START-DB project into IntelliJ IDEA via: |
9 | 22 |
|
10 | 23 | - Select **File > Open**
|
11 | 24 | - In the subsequent dialog navigate to the root `pom.xml` file
|
12 | 25 | - In the subsequent dialog select **Open as Project**
|
13 | 26 |
|
14 | 27 | #### Checkstyle
|
15 |
| -You can install [Checkstyle] plugin to check the Start DB code. |
| 28 | + |
| 29 | +You can install [Checkstyle] plugin to check the START-DB code. |
16 | 30 |
|
17 | 31 | 1. Open **File > Settings> Tools > CheckStyle**
|
18 | 32 | 2. Select CheckStyle version `9.3`
|
19 | 33 | 3. Import CheckStyle file `conventions/checkstyle.xml`
|
20 | 34 | 4. Click "OK"
|
21 | 35 |
|
22 | 36 | ### Formatting
|
23 |
| -Start DB code is automatically formatted with [spotless], backed by the Eclipse formatter. You can do the same in IntelliJ with the [Eclipse Code Formatter] so that you can apply the correct formatting directly in |
| 37 | + |
| 38 | +START-DB code is automatically formatted with [spotless], backed by the Eclipse formatter. You can do the same in IntelliJ with the [Eclipse Code Formatter] so that you can apply the correct formatting directly in |
24 | 39 | your IDE. Or import it as IntelliJ code style setting.
|
25 | 40 |
|
26 | 41 | 1. Open **File > Settings/Preferences > Code Style > Java**
|
27 | 42 | 2. Gear icon > Import Scheme > Eclipse XML Profile
|
28 | 43 | 3. Navigate to the file `conventions/eclipse-formatter.xml`
|
29 | 44 | 4. Click "OK"
|
30 | 45 |
|
31 |
| -[Checkstyle]: https://plugins.jetbrains.com/plugin/1065-checkstyle-idea |
| 46 | +[checkstyle]: https://plugins.jetbrains.com/plugin/1065-checkstyle-idea |
32 | 47 | [spotless]: https://github.com/diffplug/spotless
|
33 |
| -[Eclipse Code Formatter]: https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter |
| 48 | +[eclipse code formatter]: https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter |
0 commit comments