How to Set Up Your DEV Environment
Git Installation
Use the latest version.
You could download Git from Git Downloads.
If you’re running macOS or Linux, you could install Git from software repository.
Git Settings
If you’re running Windows, following settings should be done before cloning ShardingSphere code.
Execute following command in PowerShell or cmd to prevent from filename too long error on cloning ShardingSphere code:
git config --global core.longpaths trueJDK Installation
Use JDK 21 or higher.
You could download JDK from OpenJDK Downloads.
You could search JDK installation guide for your platform on Google.
Maven
Optional. You could use mvn command if Maven is ready, else use mvnw instead (download and install Maven automatically, use version defined in .mvn/wrapper/maven-wrapper.properties).
Use Maven 3.9.0 or higher.
You could download Maven from Downloading Apache Maven.
Please refer to Installing Apache Maven for more details.
Terminal
macOS
You could use any of them:
- Terminal : Preinstalled on macOS
- iTerm2 : Could be installed by yourself
Windows
You could use any of them:
- PowerShell : Preinstalled on Windows
- Git Bash : Could be installed in official Git client
- Windows Subsystem for Linux (WSL) : Could be installed by yourself
Linux
Different terminal on different distribution.
Environment Variables
Set up JAVA_HOME, MAVEN_HOME and PATH system environment variables.
You could find how to do it on Google.
IDE
You could use any of them:
- IntelliJ IDEA
- Eclipse
- NetBeans
IDE Plugins
These plugins might be useful for you:
- Lombok : Required. It’s already preinstalled in the latest IntelliJ IDEA.
- CheckStyle : Optional. It provides both real-time and on-demand scanning of Java files. Notice: Not all Code of Conduct could be checked.
- ANTLR v4 : Optional. It’s recommended if you contribute to SQL extension.
CheckStyle Settings
- Add
Configuration File: usesrc/resources/checkstyle.xml - Select
Checkstyle version: use12.3.0