apache-log4j-2

License

This packages the Apache Log4j 2 jars into a convenient gem for requiring.

require 'log4j-2'

Setup

To setup the development environment for building the gem, some dependencies must be installed.

Install mise-en-place

The mise CLI tool used to manage multiple runtime versions.

See: https://mise.jdx.dev/getting-started.html

curl https://mise.jdx.dev/install.sh | sh
~/.local/bin/mise --version

Enable mise activation in future zsh sessions.

echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc

Install required runtime software

Download and install the latest version of the Java JDK.

mise install

Install required gems

Use bundler to install the required gem dependencies.

rm -rf Gemfile.lock vendor
bundle install

Building

To clean the project, run unit tests, build the gem file, and verify that the built artifact works, execute:

bundle exec rake clean clobber package spec gem verify

Publish

To publish the gem, execute:

bundle exec rake publish