Using --offline should result in the behavior you want. How are you executing this build? Are you using the Gradle wrapper?
Using --offline should result in the behavior you want. How are you executing this build? Are you using the Gradle wrapper?