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/04/30 20:16:59 UTC

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

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

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
new file mode 100644
index 0000000..6567354
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,36 @@
+project.ext {
+    basePackageName = "openwhisk-catalog"
+    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-catalog's sources"
+    group "Release artifact"
+    classifier "sources"
+
+    from(project.rootDir) {
+        include('packages/**', 'gradle/**', 'test/**')
+        include('.jshintrc', '.scalafmt.conf')
+        include('README.md', 'CONTRIBUTING.md')
+        include('gradlew', 'gradlew.bat', 'build.gradle', 'settings.gradle', 'credentials.json.enc')
+        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