You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by pa...@apache.org on 2015/06/15 14:34:18 UTC

zest-qi4j git commit: Build: add `gooffline` task that download all needed dependencies

Repository: zest-qi4j
Updated Branches:
  refs/heads/develop cbdbbb1aa -> 2a6e64e55


Build: add `gooffline` task that download all needed dependencies


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/2a6e64e5
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/2a6e64e5
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/2a6e64e5

Branch: refs/heads/develop
Commit: 2a6e64e554111797af601823fc6462edf73fa7ec
Parents: cbdbbb1
Author: Paul Merlin <pa...@apache.org>
Authored: Mon Jun 15 14:34:02 2015 +0200
Committer: Paul Merlin <pa...@apache.org>
Committed: Mon Jun 15 14:34:02 2015 +0200

----------------------------------------------------------------------
 README.txt                                       | 5 +++++
 build.gradle                                     | 8 ++++++++
 manual/src/docs/tutorials/howto-build-system.txt | 7 +++++++
 3 files changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/2a6e64e5/README.txt
----------------------------------------------------------------------
diff --git a/README.txt b/README.txt
index 0cc0bcd..636970e 100644
--- a/README.txt
+++ b/README.txt
@@ -26,6 +26,11 @@ Joda-Time (Apache Licence).
 
 Dependencies not included
 -------------------------
+The source distributions contains Qi4j sources only to keep the download
+size small. The Gradle build automatically downloads needed dependencies.
+If you need to go offline type `./gradlew gooffline` to ensure all needed
+dependencies are cached by Gradle.
+
 The binary distributions contains Qi4j artifacts only to keep the download
 size small. Each Qi4j artifact comes with a file prefixed ..-runtime-deps.txt
 that contains the list of its dependencies. Moreover, at the SDK root you'll

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/2a6e64e5/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index bb61078..a16bc30 100644
--- a/build.gradle
+++ b/build.gradle
@@ -381,6 +381,14 @@ allprojects {
   }
 } // allprojects END -------------------------------------------------------
 
+// Allow easy download of all dependencies to go offline
+// ./gradlew gooffline
+task gooffline {
+  doLast {
+    allprojects.configurations.flatten()*.resolvedConfiguration
+  }
+}
+
 gradle.taskGraph.whenReady {taskGraph ->
   taskGraph.allTasks.last().doLast {
     if( rootProject.ext.testFailures )

http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/2a6e64e5/manual/src/docs/tutorials/howto-build-system.txt
----------------------------------------------------------------------
diff --git a/manual/src/docs/tutorials/howto-build-system.txt b/manual/src/docs/tutorials/howto-build-system.txt
index 9c551c9..8c0da11 100644
--- a/manual/src/docs/tutorials/howto-build-system.txt
+++ b/manual/src/docs/tutorials/howto-build-system.txt
@@ -36,6 +36,13 @@ A quick way to check that nothing broke.
 
 Here are some of theses global tasks we defined:
 
+gooffline::
++
+--
+Resolve, download and cache all needed dependencies.
+Useful to go offline.
+--
+
 clean::
 +
 --