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/20 20:25:59 UTC

[GitHub] markusthoemmes commented on a change in pull request #3313: Add the support to package source code

markusthoemmes commented on a change in pull request #3313: Add the support to package source code
URL: https://github.com/apache/incubator-openwhisk/pull/3313#discussion_r169448059
 
 

 ##########
 File path: 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')
+    }
 
 Review comment:
   Can we turn this around and use a list of `excludes` instead of `includes`?

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