Fix usage of nullable in gradle 6.0 DomainObjectContext.project
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ internal fun Project.execWithProgress(description: String, readStdErr: Boolean =
|
|||||||
val stdInPipe = PipedInputStream()
|
val stdInPipe = PipedInputStream()
|
||||||
val exec = services.get(ExecActionFactory::class.java).newExecAction()
|
val exec = services.get(ExecActionFactory::class.java).newExecAction()
|
||||||
body(exec)
|
body(exec)
|
||||||
return project.operation(description) {
|
return project!!.operation(description) {
|
||||||
progress(description)
|
progress(description)
|
||||||
exec.standardOutput = PipedOutputStream(stdInPipe)
|
exec.standardOutput = PipedOutputStream(stdInPipe)
|
||||||
val outputReaderThread = thread(name = "output reader for [$description]") {
|
val outputReaderThread = thread(name = "output reader for [$description]") {
|
||||||
|
|||||||
Reference in New Issue
Block a user