Skip to content

Commit 3936593

Browse files
Remove deprecated exec usage
1 parent e278f0c commit 3936593

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1+
import javax.inject.Inject
2+
13
plugins {
24
id "java"
35
id "io.quarkus"
46
id "com.diffplug.spotless" version "${spotlessPluginVersion}"
57
id "io.freefair.lombok" version "${lombokPluginVersion}"
68
}
79

10+
interface ExecOperationsProvider {
11+
@Inject
12+
ExecOperations getExecOperations()
13+
}
14+
815
def gitVersion() {
916
def stdout = new ByteArrayOutputStream()
10-
exec {
17+
project.objects.newInstance(ExecOperationsProvider).execOperations.exec {
1118
commandLine "git", "describe", "--tags", "--always", "--dirty"
1219
standardOutput = stdout
1320
}

0 commit comments

Comments
 (0)