Skip to content

build: include LICENSE and NOTICE in published JARs - #2450

Merged
mykola-mokhnach merged 1 commit into
appium:masterfrom
dlowzzxx:fix/include-license-notice-in-maven-jars
Sep 25, 2026
Merged

mykola-mokhnach merged 1 commit into
appium:masterfrom
dlowzzxx:fix/include-license-notice-in-maven-jars

Conversation

@dlowzzxx

Copy link
Copy Markdown
Contributor

Change list

  • Add the repository's LICENSE and NOTICE to META-INF in the three Maven-published JARs (binary, sources, and Javadoc), so release consumers get Appium's Apache 2.0 and copyright notices in each artifact.

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Details

Fixes #2448 for the Maven-published artifacts. The published io.appium:java-client:10.1.1 binary JAR has 640 entries but contains no LICENSE or NOTICE at any path. The Gradle build publishes components.java without copying either root file into its three archives. The change configures jar, sourcesJar, and javadocJar to place both files at META-INF/LICENSE and META-INF/NOTICE. The optional shadowJar task is not part of that Maven publication and remains unchanged; its dependency notice files require separate handling.

Verification: The published 10.1.1 binary and sources JARs contain no license or notice file; its Javadoc JAR has only a generated legal/LICENSE, with no META-INF/LICENSE or META-INF/NOTICE. In a Gradle 9.7.1/JDK 25 Linux container, gradle jar sourcesJar javadocJar --offline --no-daemon --console=plain succeeded. Direct ZIP inspection found exactly one META-INF/LICENSE and one META-INF/NOTICE in each of the three new JARs, byte-for-byte equal to the repository files. git diff --check passes.

Codex assisted with investigation, implementation, and verification. If this merged contribution qualifies for Appium's discretionary contributor compensation, I would appreciate consideration under the governance policy and can provide payout details privately through OpenCollective. No payment is assumed.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: dlowzzxx / name: dlowzzxx (e357fc8)

@mykola-mokhnach
mykola-mokhnach merged commit bf7be89 into appium:master Sep 25, 2026
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🚀 Feature]: Include LICENSE and copyright NOTICE inside all packages and binary releases

2 participants