Skip to content

Commit

Permalink
Merge pull request #358 from derms/dev
Browse files Browse the repository at this point in the history
Updated README for Standalone Gradle deployer with ml-gradle
  • Loading branch information
rjrudin authored Jun 19, 2018
2 parents 5f2d456 + f6168f0 commit ba2bb1e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/disconnected-project-using-plugins-and-gradlew/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,20 @@ task downloadToProjectMavenRepo(type: Copy) {
configurations.runtime.files
...
```

## Use own gradle instance (rather than gradlew)

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

1. Remove build directory (to ensure that no gradlew zip exists in the build dir)

2. Create deployer zip
```
gradle -Dgradle.user.home=build/gradle-home makeOfflineZip
```
3. Copy zip (build/distributions/offline.zip) to desired location / server and unzip

4. Run disconnected tasks from unzip location
```
gradle mlDeploy -Pdisconnected=true
```

0 comments on commit ba2bb1e

Please sign in to comment.