Skip to content

terrylockett/advent-of-code

Repository files navigation

Advent of Code

The Most beautiful kotlin and java code ever written for AOC

Cool pic of AOC holding a piece of paper

Guaranteed I will finish all days.

Configuration

JDK 17+

Set AOC session token in your ~/.gradle/gradle.properties to download the puzzle input.

AOC_TOKEN=abc123
How to get session token.
  1. Authenticate at https://adventofcode.com.
  2. Open Web dev tools(cmd + opt + i) -> Storage tab
  3. Copy session value

Usage

Build

./gradlew build

Run

./gradlew 2023:day01:run

Lint

./gradlew 2023:day01:spotlessApply

Test

./gradlew test

Create new Module

./gradlew newModule -PmoduleName=2023:day02 -Plang=kotlin
valid langs = [kotlin | java]

Download puzzle input

./gradlew 2023:day01:downloadPuzzleInput

Clean puzzle input

./gradlew 2023:day01:cleanPuzzleInput
Note: clean does NOT depend on this.