Change error with distribution export location, added sourcesJar task.

Project: http://git-wip-us.apache.org/repos/asf/incubator-wave/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-wave/commit/612798cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-wave/tree/612798cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-wave/diff/612798cc

Branch: refs/heads/master
Commit: 612798cc0785700b92347b5eaead25391eb170c2
Parents: 748c3b7
Author: wisebaldone <[email protected]>
Authored: Fri Dec 11 17:56:58 2015 +1000
Committer: wisebaldone <[email protected]>
Committed: Fri Dec 11 17:56:58 2015 +1000

----------------------------------------------------------------------
 README.md         | 7 ++++++-
 build.gradle      | 6 +++++-
 wave/build.gradle | 8 ++++----
 3 files changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/612798cc/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 3a97dc6..a1a29b4 100644
--- a/README.md
+++ b/README.md
@@ -87,6 +87,7 @@ Run Tasks:
 
 Distribution Tasks:
 - **jar**: builds jar file for the project.
+- **sourcesJar**: builds a source jar file for each project.
 - **createDist**: builds the zip and tar file for distribution.
 - **createDistZip**: builds the zip for distribution.
 - **createDistTar**: builds the tar for distribution.
@@ -95,9 +96,13 @@ Build
 -----
 
 To build the client and server:
-    gradle jar
+    `gradle jar`
 It will be created in wave/build/libs/wave-*version*.jar
 
+The sources can also be packaged into a jar by doing
+    `gradle sourcesJar`
+This will create a `project name`-sources.jar in each projects build/libs 
directory.
+
 Note: 
 
 - if pst-`version`.jar is unable to be found run `gradle pst:jar` then retry.

http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/612798cc/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index d348871..2453caa 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,12 +26,16 @@ subprojects {
     //apply plugin: 'checkstyle'
     sourceCompatibility = 1.7
     targetCompatibility = 1.7
+    test.ignoreFailures = true
 
     compileJava{
         options.incremental = true
     }
 
-    test.ignoreFailures = true
+    task sourcesJar(type: Jar, dependsOn: classes) {
+        classifier = 'sources'
+        from sourceSets.main.allSource
+    }
 }
 
 project(':wave'){

http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/612798cc/wave/build.gradle
----------------------------------------------------------------------
diff --git a/wave/build.gradle b/wave/build.gradle
index 482cab1..0b6c7c4 100644
--- a/wave/build.gradle
+++ b/wave/build.gradle
@@ -581,10 +581,10 @@ createDistTar.dependsOn jar, createPropertiesFile
 task createDist() {
     doFirst {
         println ''
-        println '----------------------------------------------'
-        println '              Creating Deployment             '
-        println 'Zip and Tar files available in wave/build/dist'
-        println '----------------------------------------------'
+        println '--------------------------------------------------------'
+        println '                 Creating Deployment                    '
+        println 'Zip and Tar files available in wave/build/distributions.'
+        println '--------------------------------------------------------'
         println ''
     }
 }

Reply via email to