Displaying differences for changeset
 
display as  

build.gradle

@@ -1,3 +1,7 @@
+/**
+ *
+ * @author david perez, sidereus
+ */
 buildscript {
   repositories {
     maven {
@@ -12,15 +16,31 @@
     
   }
 }
+
 apply plugin: "com.jfrog.artifactory"
 apply plugin: 'maven-publish'
 apply plugin: 'java-library'
-//apply plugin: 'war'
 
 group = theGroup
 version = theVersion
 sourceCompatibility = theSourceCompatibility
 
+def getVersionName = { ->
+    def hashStdOut = new ByteArrayOutputStream()
+    exec {
+        commandLine 'hg', 'parents', '--template', "{latesttag}.{latesttagdistance}"
+        standardOutput = hashStdOut
+    }
+    return hashStdOut.toString().trim()
+}
+
+version = getVersionName()
+
+sourceSets {
+    main.java.srcDirs += 'src/csip'
+    main.resources.srcDirs += 'src/resources'
+}
+
 publishing {
   publications {
       mavenJava(MavenPublication) {
@@ -33,7 +53,6 @@
 }
 
 
-
 dependencies {
 
     api 'org.glassfish.hk2.external:aopalliance-repackaged:2.4.0-b09'
@@ -98,7 +117,6 @@
     //
     api 'org.mongodb:bson:4.4.1'
     api 'org.mongodb:mongo-java-driver:3.12.10'
-    
 }
 
 
@@ -121,3 +139,4 @@
     }
 }
 
+

gradle.properties

@@ -4,5 +4,4 @@
 
 theGroup=edu.colostate.omslab
 theName=csip-core
-theVersion=4.0
-theSourceCompatibility=1.8
\ No newline at end of file
+theSourceCompatibility=1.8