_ _ __ _____ _ ___ ___ ___ __
/\ | | | | / _| / ____| | | |__ \ / _ \__ \/_ |
/ \ __| |_ _____ _ __ | |_ ___ | |_ | | ___ __| | ___ ) | | | | ) || |
/ /\ \ / _` \ \ / / _ \ '_ \| __| / _ \| _| | | / _ \ / _` |/ _ \ / /| | | |/ / | |
/ ____ \ (_| |\ V / __/ | | | |_ | (_) | | | |___| (_) | (_| | __/ / /_| |_| / /_ | |
/_/ \_\__,_| \_/ \___|_| |_|\__| \___/|_| \_____\___/ \__,_|\___| |____|\___/____||_|
My attempt at the Advent of Code for 2021 using Java
M | D | W | D | F | S | S |
---|---|---|---|---|---|---|
⭐ ⭐ | ⭐ ⭐ | ⭐ ⭐ | ⭐ ⭐ | ⭐ ⭐ | ||
⭐ ⭐ | ⭐ ⭐ | ⭐ | ⭐ | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
21 | 22 | 23 | 24 | 25 |
These instructions will get you a copy of the project up and running on your local machine for testing purposes.
- You will need Java 1.8 or higher installed and configured on your system PATH.
It's best to use the OpenJDK, Windows users can get binaries from AdoptOpenJDK. - Apache Maven 3+
-
Clone the repository:
git clone https://github.com/Skerwe/Advent-of-Code-2021.git
-
In bash/terminal/command line, cd into the project directory:
cd Advent-of-Code-2021
-
Compile and build the application:
mvn compile package
Run the application for all days:
mvn compile exec:java -Dexec.mainClass="za.web.skerwe.adventofcode2021.Main"
Run the application for a specific day:
mvn compile exec:java -Dexec.mainClass="za.web.skerwe.adventofcode2021.Main" -Dexec.arguments="D01,D03"
The final output of the challenge is printed to the console.
Access the Maven dashboard site on localhost:8080
mvn site site:run
The site will include all other reports, like the test reports, code coverage and code quality reports.
But you can run each report separatly:
mvn surefire-report:report
Test report output to folder:
target\site\surefire-reports
mvn javadoc:javadoc
Javadocs output folder:
target\site\apidocs
mvn jacoco:check
mvn checkstyle:check
mvn pmd:check
- Java programming language
- Maven build tool
- JUnit Jupiter (JUnit 5) testing framework
- textfac.es ಠ⌣ಠ
The source code is free -- see the LICENSE file for details