From 6b267f8652c4d68ff16d89968963d6ccd5723988 Mon Sep 17 00:00:00 2001 From: "tomasz.kowalczewski" Date: Sat, 13 Feb 2021 16:39:14 +0100 Subject: [PATCH] Using maven shade plugin so we can release a nodep version of log4j2 appender artifact. It has Agrona and Netty shaded in with relocated package names. The option to minimizeJar is enabled so that only required classes are included (fingers crossed that it is sound). --- loki-log4j2-appender/pom.xml | 38 +++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/loki-log4j2-appender/pom.xml b/loki-log4j2-appender/pom.xml index 8c40c73..87a3d43 100644 --- a/loki-log4j2-appender/pom.xml +++ b/loki-log4j2-appender/pom.xml @@ -1,4 +1,5 @@ - + 4.0.0 @@ -118,6 +119,41 @@ + + org.apache.maven.plugins + maven-shade-plugin + 3.2.4 + + + package + + shade + + + + + org.agrona:agrona + io.netty:netty-codec-http + + + true + + + org.agrona + pl.tkowalcz.tjahzi.org.agrona + + + io.netty + pl.tkowalcz.tjahzi.io.netty + + + + true + -nodep + + + +