Skip to content

Commit 426b140

Browse files
Dermot SmythDermot Smyth
authored andcommitted
updated README
1 parent 4e5f559 commit 426b140

File tree

1 file changed

+17
-0
lines changed
  • examples/disconnected-project-using-plugins-and-gradlew

1 file changed

+17
-0
lines changed

examples/disconnected-project-using-plugins-and-gradlew/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,21 @@ task downloadToProjectMavenRepo(type: Copy) {
9595
configurations.compile.files
9696
configurations.runtime.files
9797
...
98+
```
99+
100+
## Use own gradle instance (rather than gradlew)
101+
102+
If you want to install gradle instead of bundling gradle wrapper (gradlew) with the offline.zip, you can do that too using the following steps
103+
104+
1. Remove build directory (to ensure that no gradlew zip exists in the build dir)
105+
106+
2. Create deployer zip
107+
```
108+
gradle -Dgradle.user.home=build/gradle-home makeOfflineZip
109+
```
110+
3. Copy zip (build/distributions/offline.zip) to desired location / server and unzip
111+
112+
4. Run disconnected tasks from unzip location
113+
```
114+
gradle mlDeploy -Pdisconnected=true
98115
```

0 commit comments

Comments
 (0)