You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/16 13:32:56 UTC

[GitHub] houshengbo closed pull request #3313: Add the support to package source code

houshengbo closed pull request #3313: Add the support to package source code
URL: https://github.com/apache/incubator-openwhisk/pull/3313
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/build.gradle b/build.gradle
index e53f40f035..5e08394ca9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -79,3 +79,41 @@ def configureUnixClasspath(File script) {
         }
         .join('\n')
 }
+
+project.ext {
+    basePackageName = "openwhisk"
+    packageExtension = "tar.gz"
+    if (project.hasProperty('projectVersion')) {
+        packageVersion = "${projectVersion}"
+    } else {
+        packageVersion = ""
+    }
+    buildFolder = "build"
+}
+
+task taredSources(type: Tar) {
+    baseName basePackageName
+    description "Creates a combined tar.gz file of openwhisk's sources"
+    group "Release artifact"
+    classifier "sources"
+
+    from(project.rootDir) {
+        include('gradle/**', 'actionRuntimes/**', 'ansible/**', 'common/**', 'core/**',
+                'docs/**', 'sdk/**', 'tests/**', 'tools/**')
+        include('.gitattributes', '.gitignore', '.project', '.pydevproject', '.scalafmt.conf')
+        include('README.md', 'CONTRIBUTING.md', 'CREDITS.txt')
+        include('gradlew', 'gradlew.bat', 'build.gradle', 'settings.gradle')
+        include('LICENSE.txt', 'NOTICE.txt', 'CHANGELOG.txt')
+    }
+    destinationDir file(buildFolder)
+    extension packageExtension
+    version packageVersion
+    compression = Compression.GZIP
+}
+
+task cleanBuild(type: Delete) {
+    def folder = new File(buildFolder)
+    if(folder.exists()) {
+        delete file(buildFolder).listFiles()
+    }
+}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services