From 426b1406fe1c8a5fecf163ea8f73a000edfc8b55 Mon Sep 17 00:00:00 2001 From: Dermot Smyth Date: Mon, 18 Jun 2018 13:50:27 +0200 Subject: [PATCH] updated README --- .../README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/disconnected-project-using-plugins-and-gradlew/README.md b/examples/disconnected-project-using-plugins-and-gradlew/README.md index cf25c674d..78f3867de 100644 --- a/examples/disconnected-project-using-plugins-and-gradlew/README.md +++ b/examples/disconnected-project-using-plugins-and-gradlew/README.md @@ -95,4 +95,21 @@ task downloadToProjectMavenRepo(type: Copy) { configurations.compile.files 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 ``` \ No newline at end of file