Skip to content

Commit

Permalink
Remove deprecated exec usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Dec 6, 2024
1 parent e278f0c commit 3936593
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import javax.inject.Inject

plugins {
id "java"
id "io.quarkus"
id "com.diffplug.spotless" version "${spotlessPluginVersion}"
id "io.freefair.lombok" version "${lombokPluginVersion}"
}

interface ExecOperationsProvider {
@Inject
ExecOperations getExecOperations()
}

def gitVersion() {
def stdout = new ByteArrayOutputStream()
exec {
project.objects.newInstance(ExecOperationsProvider).execOperations.exec {
commandLine "git", "describe", "--tags", "--always", "--dirty"
standardOutput = stdout
}
Expand Down

0 comments on commit 3936593

Please sign in to comment.