- Clone the repository
./git clone https://github.com/Railroad-Team/Railroad.git
- (Optional) Switch to the development branch
./git checkout dev
./git fetch
./git pull
- Open the
build.gradle
file in IntelliJ IDEA - Go to
File
->Project Structure
->Project
->Project SDK
and select the Java 21 SDK - Go to
File
->Project Structure
->Project
->Project language level
and selectSDK default
- Go to
File
->Settings
->Build, Execution, Deployment
->Build Tools
->Gradle
and set theGradle JVM
to the Java 21 SDK - Go to the
Gradle
tab on the right side of the screen and click on theReload All Gradle Projects
button
- Run the
shadowJar
task./gradlew shadowJar
- The compiled JAR file will be located in the
build/libs
directory - Run the JAR file
java -jar build/libs/railroad-1.0-SNAPSHOT-all.jar
- Run the
run
task./gradlew runShadow