Java Client to Connect to Stash Repository

2019-08-01 16:13发布

I am trying to programatically connect to a STASH repository from a Java class. I have had a look and I cannot find any Java clients to do this. Has anyone come across any?

The reason I want to connect to a STASH repository is that I am writing a Maven plugin that will go to a Git repository in STASH and return a list of commits and then Jiras for a given tag.

Any help would be greatly appreciated.

1条回答
老娘就宠你
2楼-- · 2019-08-01 16:39

(Consolidating two answers given in comments as a Community Wiki answer)

First of all, there's JGit:

JGit is an EDL (new-style BSD) licensed, lightweight, pure Java library implementing the Git version control system.

And then there's the Stash Java Client:

The Stash Java Client, is a small, light-weight Java library that can be used to interface with a Stash instance via its REST API.

查看更多
登录 后发表回答