Model input reference in subprojects

Hi,

I would like to know if it is possible to use model input reference in subprojects block. If I simple use ‘$’ then I get compilation error, e.g.:

subprojects {
model {
tasks {
def c = $.components
}
}
}

Thanks,
Michał