You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by sebb <se...@gmail.com> on 2014/03/16 01:48:11 UTC
Re: svn commit: r1577916 - /httpcomponents/httpclient-android/branches/4.3.3-android/build.gradle
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