Giuseppe Barbieri
11/10/2025, 9:31 AMcontext(project: Project)
operator fun String.invoke(): String {
val output = ByteArrayOutputStream()
project.providers.exec {
commandLine(split(Regex("\\s+")))
standardOutput = output
}
return output.toString().trim()
}
but whenever I try to execute some command, I do get
> An exception occurred applying plugin request [id: 'io.github.theapache64.korduino.gradle', version: '0.0.1']
> > Failed to apply plugin 'io.github.theapache64.korduino.gradle'.
> > Could not create provider for value source ProcessOutputValueSource.Giuseppe Barbieri
11/10/2025, 9:33 AMreturn project.providers.exec {
commandLine("pwd")
}.standardOutput.asText.get()Vampire
11/10/2025, 10:35 AM--stacktrace you would probably get a clear error that you must not set standardOutput when using providers.exec.