Last change
on this file since 32954 was 32693, checked in by floscher, 9 years ago |
[mapillary] Clean up build.gradle
The build file for Gradle is now split in several parts for a better overview and better maintainability.
The files gradle/*.gradle are parts that are unlikely to change often, because these are not specific to this plugin and can be configured through gradle.properties .
Also the Gradle version is bumped to 2.14.1, because a critical defect has been fixed since 2.14 (see https://docs.gradle.org/2.14.1/release-notes).
|
File size:
291 bytes
|
Rev | Line | |
---|
[32693] | 1 | ext.getVersionName = { ->
|
---|
| 2 | def resultStream = new ByteArrayOutputStream()
|
---|
| 3 | def nullOut = new ByteArrayOutputStream()
|
---|
| 4 | exec {
|
---|
| 5 | commandLine 'git', 'describe', '--always', '--dirty'
|
---|
| 6 | standardOutput = resultStream
|
---|
| 7 | errorOutput = nullOut
|
---|
| 8 | }
|
---|
| 9 | return resultStream.toString().trim()
|
---|
| 10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.