- Java 1.8/1.11/1.15
- Maven
We have provided scripts to execute the code.
Use run.sh
if you are Linux/Unix/macOS Operating systems and run.bat
if you are on Windows.
Internally both the scripts run the following commands
mvn clean install -DskipTests assembly:single -q
- This will create a jar filegeektrust.jar
in thetarget
folder.java -jar target/geektrust.jar sample_input/input1.txt
- This will execute the jar file passing in the sample input file as the command line argument
Use the pom.xml provided along with this project. Please change the main class entry (com.codersbuffet.dsa.Main) in the pom.xml if your main class has changed.
mvn clean test
will execute the unit test cases.
You can refer our help documents here You can read build instructions here