KGit

Kotlin Wrapper Library of JGit

License

License

GroupId

GroupId

com.github.sya-ri
ArtifactId

ArtifactId

kgit
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

pom
Description

Description

KGit
Kotlin Wrapper Library of JGit
Project URL

Project URL

https://github.com/sya-ri/KGit
Source Code Management

Source Code Management

https://github.com/sya-ri/KGit.git

Download kgit

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.sya-ri/kgit/ -->
<dependency>
    <groupId>com.github.sya-ri</groupId>
    <artifactId>kgit</artifactId>
    <version>1.0.5</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.sya-ri/kgit/
implementation 'com.github.sya-ri:kgit:1.0.5'
// https://jarcasting.com/artifacts/com.github.sya-ri/kgit/
implementation ("com.github.sya-ri:kgit:1.0.5")
'com.github.sya-ri:kgit:pom:1.0.5'
<dependency org="com.github.sya-ri" name="kgit" rev="1.0.5">
  <artifact name="kgit" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.sya-ri', module='kgit', version='1.0.5')
)
libraryDependencies += "com.github.sya-ri" % "kgit" % "1.0.5"
[com.github.sya-ri/kgit "1.0.5"]

Dependencies

compile (1)

Group / Artifact Type Version
org.eclipse.jgit : org.eclipse.jgit jar 5.11.0.202103091610-r

runtime (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.31

Project Modules

There are no modules declared in this project.

KGit

GitHub release (latest by date) maven-central ktlint

KGit is Kotlin Wrapper Library of JGit.

  • Null Safety Methods
  • Command Settings Available Using Lambda Function (No Method Chain)

Installation

build.gradle

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.github.sya-ri:kgit:1.0.5'
}

build.gradle.kts

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.github.sya-ri:kgit:1.0.5")
}

Examples

Clone Repository

JGit

val git: Git = Git.cloneRepository()
                  .setURI("https://github.com/sya-ri/KGit")
                  .setTimeout(60)
                  .setProgressMonitor(TextProgressMonitor())
                  .call()

KGit

val git: KGit = KGit.cloneRepository {
    setURI("https://github.com/sya-ri/KGit")
    setTimeout(60)
    setProgressMonitor(TextProgressMonitor())
}

Develop

Git Commit

Before Commit

Run the gradle task to check the code format.

gradle ktlintCheck

Template

<type>: <subject>

Type

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing or correcting existing tests
  • chore: Changes to the build process or auxiliary tools and libraries such as documentation generation

Versions

Version
1.0.5
1.0.4
1.0.3