Java Client to Connect to Stash Repository

房东的猫 提交于 2019-12-11 10:26:04

问题


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:


(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.



来源:https://stackoverflow.com/questions/24963084/java-client-to-connect-to-stash-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!