fix(build): package each module's LICENSE.txt into JAR META-INF

Parent resources previously copied the repo-root MIT LICENSE into every
module JAR. Apache-2.0 modules (jcl-over-slf4j, log4j-over-slf4j) already
have the correct LICENSE.txt at the module root, but it was never packaged.

Use ${project.basedir}/LICENSE.txt so META-INF/LICENSE.txt matches the
module's declared license (Apache-2.0 or MIT).

Fixes #465

Signed-off-by: arimu1 <19286898+arimu1@users.noreply.github.com>
This commit is contained in:
arimu1 2026-08-01 11:24:00 +07:00
parent 61400453cd
commit 4fb3c9ca9a
1 changed files with 3 additions and 1 deletions

View File

@ -95,8 +95,10 @@
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
<!-- Use each module's own LICENSE.txt (e.g. Apache-2.0 for jcl-over-slf4j
and log4j-over-slf4j) rather than the repo-root MIT LICENSE. -->
<resource> <resource>
<directory>..</directory> <directory>${project.basedir}</directory>
<targetPath>META-INF</targetPath> <targetPath>META-INF</targetPath>
<includes> <includes>
<include>LICENSE.txt</include> <include>LICENSE.txt</include>