Skip to content

Commit 34a7d18

Browse files
committed
fix: MissingMethodException hopefully fixed
1 parent 52c564b commit 34a7d18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/groovy/com/avast/gradle/dockercompose/ComposeExecutor.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ abstract class ComposeExecutor implements BuildService<Parameters>, AutoCloseabl
122122
}
123123
}
124124

125-
private String executeWithAnsi(String... args) {
125+
String executeWithAnsi(String... args) {
126126
new ByteArrayOutputStream().withStream { os ->
127127
executeWithCustomOutput(os, false, false, false, args)
128128
os.toString().trim()
@@ -134,7 +134,7 @@ abstract class ComposeExecutor implements BuildService<Parameters>, AutoCloseabl
134134
VersionNumber getVersion() {
135135
if (cachedVersion) return cachedVersion
136136
String rawVersion = executeWithAnsi('version', '--short')
137-
cachedVersion = VersionNumber.parse(rawVersion.startsWith('v') ? rawVersion.substring(1) : rawVersion)
137+
return cachedVersion = VersionNumber.parse(rawVersion.startsWith('v') ? rawVersion.substring(1) : rawVersion)
138138
}
139139

140140
Map<String,Iterable<String>> getContainerIds(List<String> serviceNames) {

0 commit comments

Comments
 (0)