Skip to content

A conflict handler for log4j2 plugins cache files for the tools.build uber task.

License

Notifications You must be signed in to change notification settings

seancorfield/build-uber-log4j2-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build-uber-log4j2-handler

A conflict handler for log4j2 plugins cache files for the uber task of tools.build.

Log4j2-based libraries often have a Log4j2Plugins.dat file, containing a cache of formatting plugins. If you build an uberjar containing more then one of these files, you need this conflict handler in order to merge those files correctly.

Note: requires at least version v0.4.0 of tools.build (that supports :conflict-handlers).

usage

Add the following dependency to your :build alias:

  io.github.seancorfield/build-uber-log4j2-handler {:git/tag "v2.24.0" :git/sha "de93f51"}

Note: as of v2.19.0 the tag is intended to reflect the version of log4j2 that is used.

In your build.clj script, require the handler:

(ns build
  (:require [clojure.tools.build.api :as b]
            [org.corfield.log4j2-conflict-handler
              :refer [log4j2-conflict-handler]]))

and then pass it to the tools.build uber task:

  (b/uber {... :conflict-handlers log4j2-conflict-handler ...})

license

Copyright © 2021-2024 Sean Corfield

Distributed under the Apache Software License version 2.0.

About

A conflict handler for log4j2 plugins cache files for the tools.build uber task.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published