Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5a9adb3 authored by dev-12's avatar dev-12
Browse files

replace deprecated uses of `exec`

parent 2de1c4bd
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -14,13 +14,12 @@ def versionMajor = 2
def versionMinor = 13
def versionPatch = 11

def getGitHash = { ->
    def stdOut = new ByteArrayOutputStream()
    exec {
def getGitHashProvider = providers.exec {
    commandLine 'git', 'log', '--pretty=format:%h', '-n', '1'
        standardOutput = stdOut
}
    return stdOut.toString().trim()

def getGitHash = {
    return getGitHashProvider.standardOutput.asText.get().trim()
}

def getDate = { ->