Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

PUBLIC REPOSITORY: A simple Gradle plugin to generate a file named "git.properties" containing the git commit & branch information used for the build. NOTE: PUBLIC REPOSITORY! Don't commit Webs-specific code

Notifications You must be signed in to change notification settings

websdev/git-commit-gradle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Commit Gradle Plugin

A simple Gradle plugin to generate a file named "git.properties" containing the git commit & branch information used for the build. This file can be read by service containers & providers (i.e. spring-boot) to generate runtime information describing what code source generated this specific build

Heavily inspired by: http://java.dzone.com/articles/spring-boots-info-endpoint-git

Usage

Include in your buildscript:

buildscript {
	dependencies {
		classpath 'com.webs.gradle:git-commit-gradle-plugin:1.0-SNAPSHOT'
	}
}

Then apply the plugin:

apply plugin: 'com.webs.generate-git-info'

(Note: this artifact is published to the Webs Nexus instance, so you will need to include that repository in your repositories section)

Updates

So you want to publish? Make your edits, submit your PR, then publish as appropriate:

  • Export your environment variables to sync to bintray
    • export BINTRAY_USER=<user>
    • export BINTRAY_KEY=<key>
  • Run the gradle publish task
    • ./gradlew bintrayUpload

About

PUBLIC REPOSITORY: A simple Gradle plugin to generate a file named "git.properties" containing the git commit & branch information used for the build. NOTE: PUBLIC REPOSITORY! Don't commit Webs-specific code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages