This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Home
Ioan Eugen Stan edited this page May 18, 2016
·
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 thegh-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.
-
buildscript {
repositories {
// jcenter()
mavenCentral()
}
dependencies {
classpath 'org.ajoberstar:gradle-git:<version>'
}
}
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>'
}
https://github.com/katharsis-project/katharsis-vertx[Katharsis Vertx] uses gradle-git plugin to manage releases and publish versions to Bintray Maven repository (via bintray gradle plugin)
You can find example of a working configuration.
See Release Notes