Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Nov 14, 2025

There are a some inconsistencies between the different kinds of jars and the included information:

  • LICENSE/NOTICE files are present in the "main" jar and in the sources jar, but not in the javadoc jar.
  • The Maven pom.xml and pom.properties files are only present for release builds or when explicitly requested.
  • "Additional" jar-manifest attributes that are only present in release builds.

This change fixes the three mentioned issues:

  • Always include pom.xml and pom.properties in the built jar files.
  • Always include the additional jar-manifest attributes, except the Git information, which would otherwise render the Gradle build cache ineffective.
  • Include pom.xml + pom.properties + license/notice in literally all jar files.

The Gradle logic to include the license+notice+pom files has been simplified as well.

…all jars

There are a some inconsistencies between the different kinds of jars and the included information:
* LICENSE/NOTICE files are present in the "main" jar and in the sources jar, but not in the javadoc jar.
* The Maven pom.xml and pom.properties files are only present for release builds or when explicitly requested.
* "Additional" jar-manifest attributes that are only present in release builds.

This change fixes the three mentioned issues:
* Always include pom.xml and pom.properties in the built jar files.
* Always include the additional jar-manifest attributes, except the Git information, which would otherwise render the Gradle build cache ineffective.
* Include pom.xml + pom.properties + license/notice in literally all jar files.

The Gradle logic to include the license+notice+pom files has been simplified as well.
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Nov 14, 2025
@snazy snazy merged commit 7642d41 into apache:main Nov 17, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Nov 17, 2025
@snazy snazy deleted the consistent-jar-content branch November 17, 2025 08:10
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.

2 participants