Merge pull request #2 from myrlen/develop

Added bintray publishing and artifact attribute to reference git changeset.
diff --git a/build.gradle b/build.gradle
index c9fce77..75a063f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,31 +1,38 @@
 buildscript {
     repositories {
-        jcenter();
+        jcenter()
     }
 
     dependencies {
         classpath ("io.spring.gradle:dependency-management-plugin:0.6.0.RELEASE")
+        classpath ("org.ajoberstar:grgit:2.0.0")
     }
 }
 
 plugins {
     id 'com.github.hierynomus.license' version '0.13.1'
+    id "com.jfrog.bintray" version "1.7.3"
 }
 
-group 'io.mifos.core'
-version '0.1.0-BUILD-SNAPSHOT'
-
-ext.versions = [
-        springcontext        : '4.3.3.RELEASE',
-        springboot           : '1.4.1.RELEASE',
-        findbugs             : '3.0.1'
-]
-
 apply plugin: 'java'
 apply plugin: 'idea'
 apply plugin: 'io.spring.dependency-management'
 apply plugin: 'maven-publish'
 apply plugin: 'license'
+apply plugin: 'com.jfrog.bintray'
+apply plugin: "org.ajoberstar.grgit"
+
+ext {
+    versions = [
+            springcontext        : '4.3.3.RELEASE',
+            springboot           : '1.4.1.RELEASE',
+            findbugs             : '3.0.1'
+    ]
+    changesetId = grgit.head().id
+}
+
+group 'io.mifos.core'
+version "0.1.0"
 
 tasks.withType(JavaCompile) {
     sourceCompatibility = JavaVersion.VERSION_1_8
@@ -71,6 +78,25 @@
     }
 }
 
+bintray {
+    user = System.getenv('BINTRAY_USER')
+    key = System.getenv('BINTRAY_KEY')
+    pkg {
+        repo = 'mifosio'
+        userOrg = 'kuelap'
+        name = "${project.group}.${project.name}"
+        licenses = ['Apache-2.0']
+        vcsUrl = 'https://github.com/mifosio/lang.git'
+        version {
+            name = project.version
+            desc = 'build snapshot'
+            released  = new Date()
+            attributes = ['changesetId': changesetId]
+        }
+    }
+    publications = ['langPublication']
+}
+
 license {
     header rootProject.file('HEADER')
     strictCheck true