Slackbot
04/21/2022, 5:55 PMVampire
04/21/2022, 5:59 PM-i
output. You cannot reference the output under that name, at least not as far as I know.
But luckily as the file is your only output of the task, just use the task itself as input for the next task.Vampire
04/21/2022, 6:01 PMKevin Pataki
04/21/2022, 6:06 PMIn fact, the runtime API has almost feature parity with the annotations. All it lacks is an equivalent for @Nested.
, so I figured that there was a way to do this and have been searching for a long time. In my case I am only outputting a single file so I'll just do your recommendation, thanks again!Vampire
04/21/2022, 6:11 PMRegularFileProperty
that you then register as output and also give the other task as input.
So there are ways, but most often it is much cleaner and nicer to just create a new class.
Besides that I'm not sure whether the local variable way would then add implicit task dependencies properly.