Gradle Offline Build
The Problem
In a recent project, I have to do Gradle build on a CI server in a very constrained environment. The constraints are:
- NO Internet connection
- NO Gradle installed
- NO local Maven repo
The obvious problem that these constraints cause is that the project can’t build because:
- Gradle is not installed
- Can’t get dependencies
The Solution
This solution will achieve the following:
- Use Gradle to build
- Use Gradle to manage dependencies
Let’s solve the problem step by step.
»