Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
Andrew Oberstar edited this page Oct 21, 2015 · 16 revisions

A set of plugins supporting interaction with Git within Gradle.

The primary use cases are:

  • [General Git actions](Grgit Usage). The plugin JAR depends on, and makes available, grgit which provides a Groovy API for interacting with Git repositories.
  • Publishing to a Github Pages website. The org.ajoberstar.github-pages plugin adds support for publishing files to the gh-pages branch of a Git repository.
  • [Managing your release process](Release Plugins 1.x):
    • org.ajoberstar.release-base provides a general structure for generating a project version from the state of your project and/or the Git repository it resides in.
    • org.ajoberstar.release-opinion adds an opinionated set of defaults on top of the base plugin that comply with Semantic Versioning.

Depending on Gradle-Git

"Classic" Plugin Dependency:

buildscript {
  repositories {
    // jcenter()
    mavenCentral()
  }
  dependencies {
    classpath 'org.ajoberstar:gradle-git:<version>'
  }
}

Plugin Portal Dependency:

Pick and choose based on the plugins you want to use.

plugins {
  id 'org.ajoberstar.grgit' version '<version>'

  id 'org.ajoberstar.github-pages' version '<version>'

  // only one of the following
  id 'org.ajoberstar.release-opinion' version '<version>'
  id 'org.ajoberstar.release-base' version '<version>'

}

Release Notes

See Release Notes

Clone this wiki locally