Archive for 5월, 2015

using gradle git revision

2015/05/29

gredle.properties
version=1.0.0-SNAPSHOT

build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath ‘org.ajoberstar:grgit:+’
}
}
ext {
git = org.ajoberstar.grgit.Grgit.open(file(‘.’))
revision = git.head().abbreviatedId
}
version = version +”-${revision}”

// expected format
{your-project-name}-{version}-{git-abbr-revision}
// result
your-project-1.0.0-SNAPSHOT-7b90a44.jar

———————-
reference : http://mrhaki.blogspot.kr/2015/04/gradle-goodness-use-git-commit-id-in.html
reference : https://github.com/ajoberstar/gradle-git/wiki

Advertisements

7 Awesome JavaScript Libraries for Drawing

2015/05/22

Shared from Zite

Graylog 1.1 Beta is Now Available!

2015/05/21

Shared from Zite

Russian roulette

2015/05/08

Shared from Zite