Skip to content

Commit

Permalink
Merge pull request #5 from eProsima/bugfix/versioning
Browse files Browse the repository at this point in the history
Bugfix/versioning [6492]
  • Loading branch information
raquelalvarezbanos committed Oct 1, 2019
2 parents 55a34b2 + 3069119 commit 9c1f272
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ apply plugin: 'java'
apply plugin: 'eclipse' // Eclipse integration

description = """"""
def version_str = "1.0.0"

repositories {
mavenCentral()
Expand All @@ -40,7 +41,9 @@ task copyResources {

// Create version file
Properties pversion = new Properties()
project.hasProperty('customversion') ? pversion.setProperty('version', project.customversion.toString()) : pversion.setProperty('version', '0.0.0')
project.hasProperty('customversion')
? pversion.setProperty('version', project.customversion.toString())
: pversion.setProperty('version', version_str)
File versionFile = new File("${project.buildDir}/resources/main/version")
versionFile.withWriter {
pversion.store(it, null)
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/idl-parser

0 comments on commit 9c1f272

Please sign in to comment.