Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

websdev/git-commit-gradle-plugin

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
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

0 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.