Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier committed Aug 30, 2023
1 parent b655a98 commit 0fcba6a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,23 @@ serialisable cache from multiple different ones.

**This plugin** provides a simple function to merge those files in a safe way.

## Usage
## Usage (sbt 1.3+)

For sbt 1.3+ add `sbt-assembly-log4j2` as a dependency in
`project/assembly.sbt` alongside [`sbt-assembly`][sbt-assembly]:


`project/plugins.sbt`:
project/plugins.sbt:
```scala
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.1")
addSbtPlugin("com.michaelpollmeier" % "sbt-assembly-log4j2" % "1.1.3")
```

`build.sbt`
build.sbt
```scala
assembly/assemblyMergeStrategy := {
case "META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat" =>
sbtassembly.Log4j2MergeStrategy.plugincache
}
```

Latest version of [sbt-assembly](https://github.com/sbt/sbt-assembly#setup)
Requires sbt 1.3+
Latest version of sbt-assembly: see https://github.com/sbt/sbt-assembly#setup

## Credits
* [Stathis Charitos](https://github.com/stathischaritos) for the idea and [creating the first version](https://github.com/idio/sbt-assembly-log4j2). Unfortunately it's unmaintained and only available for a outdated sbt and sbt-assembly versions.
Expand Down

0 comments on commit 0fcba6a

Please sign in to comment.