Skip to content
This repository was archived by the owner on Jun 19, 2018. It is now read-only.

bulwinkel/gradle-git-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Git Info

IMPORTANT: This plugin is deprecated

Please migrate to: https://github.com/bulwinkel/gradle-git-version

Plugin which exposes the commit count and latest tag to your gradle build for use as the build number and version code respectively.

Usage

Apply the plugin in your build.gradle file:

buildscript {
  repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
  }
  dependencies {
    classpath 'com.github.bulwinkel:gradle-git-info:1.1.0'
  }
}

apply plugin: 'com.bulwinkel.gradle-git-info'

The git info is then exposed via the gitInfo extension property on your project instance:

println "commitCount: ${project.gitInfo.commitCount}"
println "latestTag: ${project.gitInfo.latestTag}"

Credits

There is nothing original here, rather just the packaging of other peoples ideas into an easy to apply plugin.

Licence

Copyright 2016 Kelvin Bulwinkel

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Gradle plugin which exposes git information to your gradle build.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages