开发者

Looking for decent Git libraries for Java [closed]

开发者 https://www.devze.com 2023-01-25 21:22 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_开发百科

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

I am looking for a decent Git library for Java for stand-alone applications.

Can anyone recommend any?


I believe you can use JGit in your Java application.

The main page includes:

JGit has very few dependencies, making it suitable for embedding in any Java application, whether or not the application is taking advantage of other Eclipse or OSGi technologies.

The download page mentions that:

JGit can be consumed in a Maven build.
Multiple artifacts are available, depending on the application's requirements:

See a full pom.xl in jgit-cookbook/blob/master/pom.xml:

Extract:

<repositories>
    <repository>
      <id>jgit-repository</id>
      <url>http://download.eclipse.org/jgit/maven</url>
    </repository>
  </repositories>

  <!-- Core Library -->
  <dependencies>
    <dependency>
      <groupId>org.eclipse.jgit</groupId>
      <artifactId>org.eclipse.jgit</artifactId>
      <version>3.4.1.201406201815-r</version>
    </dependency>
  </dependencies>

The exact list of git commands currently supported is not always up-to-date (as the bug 317482 illustrates):

Update September 2013 - July 2014: all the commands below are now available.

Looking for decent Git libraries for Java [closed]

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号