palantir-java-format icon indicating copy to clipboard operation
palantir-java-format copied to clipboard

improvement: Publish executable shadowJar for formatter with CLI

Open andreweacott opened this issue 3 months ago • 1 comments

Configure the palantir-java-format module to publish the shadowJar (fat JAR with all dependencies) as an additional artifact with 'executable' classifier. This enables distributing a self-contained formatter jar alongside the standard library artifacts.

Before this PR

The palantir-java-format Jar artifacts published from CI are not executable, making it hard to use the formatter as a CLI

After this PR

  • A shadow Jar is built alongside the default formatter Jar
  • The shadow Jar is additionally published to Maven with the 'executable' classifier

Possible downsides?

None I can think of

andreweacott avatar Nov 06 '25 19:11 andreweacott

Successfully generated changelog entry!

Entry generated via PR title

To modify this entry, edit PR title using proper format.


📋Changelog Preview

💡 Improvements

  • Publish executable shadowJar for formatter with CLI (#1464)

changelog-app[bot] avatar Nov 06 '25 19:11 changelog-app[bot]