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/02/05 21:20:45 UTC

[GitHub] mrutkows closed pull request #706: Add the support to package the source code

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

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 1cf4798b..965aa968 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,6 +20,41 @@ ext.dockerContainerName = "wskdeploy"
 ext.dockerBuildArgs = getDockerBuildArgs()
 apply from: 'gradle/docker.gradle'
 
+project.ext {
+    basePackageName = "openwhisk-wskdeploy"
+    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 wskdeploy's sources"
+    group "Release artifact"
+    classifier "sources"
+
+    from(project.rootDir) {
+        include('cmd/*.go', 'deployers/*.go', 'parsers/*.go', 'utils/*.go',
+                'wskderrors/*.go', 'wskenv/*.go', 'wskprint/*.go', 'wski18n/**')
+        include('*.go')
+        include('gradle/**')
+        include('README.md', 'CONTRIBUTING.md', 'DEPENDENCIES.md')
+        include('gradlew', 'gradlew.bat', 'Dockerfile', 'build.gradle')
+        include('LICENSE', 'NOTICE', 'CHANGELOG')
+    }
+    destinationDir file(buildFolder)
+    extension packageExtension
+    version packageVersion
+    compression = Compression.GZIP
+}
+
+task cleanBuild(type: Delete) {
+    delete file(buildFolder).listFiles()
+}
 
 task removeBinary(type: Delete) {
     delete "${projectDir}/bin/wskdeploy"


 

----------------------------------------------------------------
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