google / google/gson

Publish `.buildinfo` files as part of release again

Open
#2,901 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

# Problem solved by the feature
With the migration to the central-publishing-maven-plugin, the `.buildinfo` files are not published anymore since Gson 2.13.2:
- [2.13.1](https://repo1.maven.org/maven2/com/google/code/gson/gson/2.13.1/)
- [2.13.2](https://repo1.maven.org/maven2/com/google/code/gson/gson/2.13.2/)

# Feature description
Apparently that is a limitation of the plugin being used, so either:
- wait until https://github.com/apache/maven-artifact-plugin/issues/173 is fixed
- try setting [`detectSkip`](https://maven.apache.org/plugins/maven-artifact-plugin/buildinfo-mojo.html#detectSkip) to `false`, and add a comment referring to the maven-artifact-plugin issue
(not sure if that has undesired side effects)

# Alternatives / workarounds
Don't generate `.buildinfo` anymore and remove the `buildinfo` execution from the maven-artifact-plugin configuration in Gson. But don't remove the complete maven-artifact-plugin entry since it is executed as part of the GitHub CI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.