Skip to content

Commit

Permalink
Use Groovy syntax for accesing a file in build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego López León committed Jun 7, 2019
1 parent 50069ae commit a2f7383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

subprojects {
def config = new ConfigSlurper().parse(new File("$projectDir/src/main/resources/version.properties").toURI().toURL())
def config = new ConfigSlurper().parse(file("$projectDir/src/main/resources/version.properties").toURI().toURL())
group = 'co.rsk'
version = config.modifier?.trim() ? config.versionNumber + "-" + config.modifier : config.versionNumber
}

0 comments on commit a2f7383

Please sign in to comment.