Skip to content
Snippets Groups Projects
Commit 34503dd2 authored by User expired's avatar User expired
Browse files

removed hard-coded version from gradle (is set using scmversion plugin)

parent 66362935
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
plugins { plugins {
id 'com.bmuschko.vagrant' version '2.0' id 'com.bmuschko.vagrant' version '2.0'
id 'com.kageiit.url-cache' version '1.0.0' id 'com.kageiit.url-cache' version '1.0.0'
id 'de.ploing.scmversion' version '0.6.3'
id 'org.ajoberstar.grgit' version '1.2.0' id 'org.ajoberstar.grgit' version '1.2.0'
} }
...@@ -15,12 +16,16 @@ import org.apache.tools.ant.filters.ReplaceTokens ...@@ -15,12 +16,16 @@ import org.apache.tools.ant.filters.ReplaceTokens
// Basic settings // Basic settings
group = 'at.uibk.dbis' group = 'at.uibk.dbis'
version = '0.5.1-SNAPSHOT'
description = 'PhD project of Nikolaus Krismer (infrastructure as vagrantbox)' description = 'PhD project of Nikolaus Krismer (infrastructure as vagrantbox)'
gradle.taskGraph.whenReady {taskGraph ->
println ((project.version.endsWith('-SNAPSHOT')) ? "Building SNAPSHOT version $version\n" : "Building RELEASE version $version\n");
}
ext { ext {
vagrantDir = getProjectDir() vagrantDir = getProjectDir()
} }
// Groovy method declaration // Groovy method declaration
def getDate() { def getDate() {
...@@ -29,6 +34,12 @@ def getDate() { ...@@ -29,6 +34,12 @@ def getDate() {
return formattedDate return formattedDate
} }
// Repositories, Configurations, Dependencies and SourceSets setup
repositories {
mavenCentral()
}
// Detailled settings (dependencies, tasks, task configuration, ...) // Detailled settings (dependencies, tasks, task configuration, ...)
eclipse { eclipse {
...@@ -70,6 +81,10 @@ eclipse { ...@@ -70,6 +81,10 @@ eclipse {
} }
} }
scmversion {
releaseTagPattern = 'v([0-9.]*)'
}
vagrant { vagrant {
provider = 'virtualbox' provider = 'virtualbox'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment