Skip to content

Repository files navigation

com/AdventOfCode2024Clj

Advent Of Code 2024

Introduction

This is a repository created for implementing exercises of Advent Of Code 2024 in Clojure.

Template generated using: https://github.com/seancorfield/deps-new

Installation

Usage

FIXME: explanation

Run the project directly, via :exec-fn:

$ clojure -X:run-x
Hello, Clojure!

Run the project, overriding the name to be greeted:

$ clojure -X:run-x :name '"Someone"'
Hello, Someone!

Run the project directly, via :main-opts (-m com.AdventOfCode2024Clj):

$ clojure -M:run-m
Hello, World!

Run the project, overriding the name to be greeted:

$ clojure -M:run-m Via-Main
Hello, Via-Main!

Run the project's tests (they'll fail until you edit them):

$ clojure -T:build test

Run the project's CI pipeline and build an uberjar (this will fail until you edit the tests to pass):

$ clojure -T:build ci

This will produce an updated pom.xml file with synchronized dependencies inside the META-INF directory inside target/classes and the uberjar in target. You can update the version (and SCM tag) information in generated pom.xml by updating build.clj.

If you don't want the pom.xml file in your project, you can remove it. The ci task will still generate a minimal pom.xml as part of the uber task, unless you remove version from build.clj.

Options

FIXME: listing of options this app accepts.

Format check

In the pipeline we use cljfmt for format check

To install cljfmt:

clj -Ttools install io.github.weavejester/cljfmt '{:git/tag "0.12.0"}' :as cljfmt

To use cljfmt to check for formatting errors in your project, run:

clj -Tcljfmt check

And to fix those errors:

clj -Tcljfmt fix

Examples

...

Bugs

...

Any Other Sections

That You Think

Might be Useful

License

Copyright © 2024

EPLv1.0 is just the default for projects generated by deps-new: you are not required to open source this project, nor are you required to use EPLv1.0! Feel free to remove or change the LICENSE file and remove or update this section of the README.md file!

Distributed under the Eclipse Public License version 1.0.

Releases

Packages

Used by

Contributors

Languages