hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1577916 - /httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle
Date Sat, 15 Mar 2014 19:02:45 GMT
Author: olegk
Date: Sat Mar 15 19:02:44 2014
New Revision: 1577916

URL: http://svn.apache.org/r1577916
Log:
Added gradle tasks to build src archives

Modified:
    httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle

Modified: httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle?rev=1577916&r1=1577915&r2=1577916&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle (original)
+++ httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle Sat Mar 15 19:02:44
2014
@@ -186,6 +186,38 @@ def askCredentials(MavenDeployer mavenDe
     }
 }
 
+project.ext.archiveSources = copySpec {
+    from (project.projectDir) {
+        include 'src/**'
+        include '*.txt'
+        include 'build.gradle'
+        include 'settings.gradle'
+        include 'gradle.properties'
+    }
+}
+
+task archiveSrcWin(type: Zip) {
+    with archiveSources
+    filter(['eol': org.apache.tools.ant.filters.FixCrLfFilter.CrLf.newInstance('crlf')],

+           org.apache.tools.ant.filters.FixCrLfFilter)
+    into "httpcomponents-client-android-$project.version"
+    classifier = 'scr'
+    baseName = 'httpcomponents-client-android'
+    version = project.version
+}
+
+task archiveSrcUnix(type: Tar) {
+    with archiveSources
+    into "httpcomponents-client-android-$project.version"
+    filter(['eol': org.apache.tools.ant.filters.FixCrLfFilter.CrLf.newInstance('lf')],
+            org.apache.tools.ant.filters.FixCrLfFilter)
+    classifier = 'scr'
+    baseName = 'httpcomponents-client-android'
+    version = project.version
+    extension = 'tar.gz'
+    compression = Compression.GZIP
+}
+
 task uploadDist(type: Upload) {
     configuration = configurations.dist
     repositories {



Mime
View raw message