Skip to content

Remove unnecessary jgit pgm dependency, add annotations removed in Ja…#1

Merged
Chris2011 merged 2 commits intoChris2011:mainfrom
OndroMih:cleanup-dependencies
May 4, 2022
Merged

Remove unnecessary jgit pgm dependency, add annotations removed in Ja…#1
Chris2011 merged 2 commits intoChris2011:mainfrom
OndroMih:cleanup-dependencies

Conversation

@OndroMih
Copy link
Copy Markdown
Contributor

@OndroMih OndroMih commented May 3, 2022

The jgit pgm dependency brings a whole lot of other dependencies (jetty, ssh, ...), making the resulting npm package huge. It seems it's is not necessary, I don't see any reference to its packages in the source code. Removing it shrinks the npm from 16MB to less than 3MB.

To compile on Java 11+, I added jakarta.annotation-api, which provides the javax.annotation package, which was removed from Java 11. This is just required for compilation, not needed at runtime. It's only for the javax.annotation.Generated in the Bundle class.

OndroMih and others added 2 commits May 3, 2022 08:54
…va 11

Signed-off-by:Ondrej Mihályi <ondrej.mihalyi@gmail.com>
Signed-off-by:Ondrej Mihalyi <ondrej.mihalyi@payara.fish>
@Chris2011
Copy link
Copy Markdown
Owner

Hey @OndroMih that is just neat. Thx for this :).

@Chris2011 Chris2011 merged commit f0ec6f6 into Chris2011:main May 4, 2022
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