Re #36: Added "nodep" version of logback appender.

This commit is contained in:
tomasz.kowalczewski committed 2021-03-13 10:20:23 +01:00
1 parent 54be65a11c
commit 52aae81566
4 files changed
+103

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
src/**
dependency-reduced-pom.xml
+3
View File
@@ -0,0 +1,3 @@
# Logback Appender - nodep
This repository contains only `pom.xml` to generate distribution with no external dependencies (other than logback-classic).
+97
View File
@@ -0,0 +1,97 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>pl.tkowalcz.tjahzi</groupId>
<artifactId>tjahzi-parent</artifactId>
<version>0.9.5-SNAPSHOT</version>
</parent>
<name>logback-appender-nodep</name>
<artifactId>logback-appender-nodep</artifactId>
<packaging>jar</packaging>
<properties>
<!--add comma separated artifact names from dependencies, to be included in unpacking-->
<project.build.unpack_includes>logback-appender</project.build.unpack_includes>
</properties>
<dependencies>
<dependency>
<groupId>pl.tkowalcz.tjahzi</groupId>
<artifactId>logback-appender</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
</execution>
</executions>
<configuration>
<classifier>sources</classifier>
<type>jar</type>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
<includeArtifactIds>${project.build.unpack_includes}</includeArtifactIds>
<includes>**\/*.java</includes>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>ch.qos.logback.logback-classic</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.agrona</pattern>
<shadedPattern>pl.tkowalcz.tjahzi.org.agrona</shadedPattern>
</relocation>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>pl.tkowalcz.tjahzi.io.netty</shadedPattern>
</relocation>
</relocations>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
+1
View File
@@ -16,6 +16,7 @@
<module>log4j2-appender</module>
<module>log4j2-appender-nodep</module>
<module>logback-appender</module>
<module>logback-appender-nodep</module>
<module>core</module>
</modules>