Skip to content

Commit ba2bb1e

Browse files
authored
Merge pull request #358 from derms/dev
Updated README for Standalone Gradle deployer with ml-gradle
2 parents 5f2d456 + f6168f0 commit ba2bb1e

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
@@ -98,3 +98,20 @@ task downloadToProjectMavenRepo(type: Copy) {
9898
configurations.runtime.files
9999
...
100100
```
101+
102+
## Use own gradle instance (rather than gradlew)
103+
104+
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
105+
106+
1. Remove build directory (to ensure that no gradlew zip exists in the build dir)
107+
108+
2. Create deployer zip
109+
```
110+
gradle -Dgradle.user.home=build/gradle-home makeOfflineZip
111+
```
112+
3. Copy zip (build/distributions/offline.zip) to desired location / server and unzip
113+
114+
4. Run disconnected tasks from unzip location
115+
```
116+
gradle mlDeploy -Pdisconnected=true
117+
```

0 commit comments

Comments
 (0)