You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/03/15 20:02:45 UTC

svn commit: r1577916 - /httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle

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 {



Re: svn commit: r1577916 - /httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle

Posted by sebb <se...@gmail.com>.
On 15 March 2014 19:02,  <ol...@apache.org> wrote:
> 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'

That looks wrong - should it be 'src' ?

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

Ditto

> +    baseName = 'httpcomponents-client-android'
> +    version = project.version
> +    extension = 'tar.gz'
> +    compression = Compression.GZIP
> +}
> +
>  task uploadDist(type: Upload) {
>      configuration = configurations.dist
>      repositories {
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org