Fix usage of nullable in gradle 6.0 DomainObjectContext.project

This commit is contained in:
Vyacheslav Gerasimov
2019-11-18 16:54:44 +03:00
parent b9031f0c68
commit ea9b490467
@@ -23,7 +23,7 @@ internal fun Project.execWithProgress(description: String, readStdErr: Boolean =
val stdInPipe = PipedInputStream()
val exec = services.get(ExecActionFactory::class.java).newExecAction()
body(exec)
return project.operation(description) {
return project!!.operation(description) {
progress(description)
exec.standardOutput = PipedOutputStream(stdInPipe)
val outputReaderThread = thread(name = "output reader for [$description]") {