Gradle build with offline dependencies (#29262)
Summary:
https://github.com/pytorch/pytorch/issues/29159
Introducing GRADLE_OFFLINE environment variable to use '--offline' gradle argument which will only use local gradle cache without network.
As it is cache and has some expiration logic - before every start of gradle 'touch' files to update last access time.
Deploying new docker images that includes prefetching to gradle cache all android dependencies, commit with update of docker images: https://github.com/pytorch/pytorch-ci-dockerfiles/commit/df07dd56812a42105e04b0ba4267912e1bf0834e
Reenable android gradle jobs on CI (revert of https://github.com/pytorch/pytorch/pull/29606/commits/54e6a7eede660b953c27e566eb4a9cdcab86b25d)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29262
Differential Revision: D18455666
Pulled By: IvanKobzarev
fbshipit-source-id: 8fb0b54fd94e13b3144af2e345c6b00b258dcc0f