From 9aab6489d788ab14ac59e2f1869f822f4045036d Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Wed, 19 Nov 2014 14:05:26 -0800 Subject: [PATCH] Use new central artifact redirect link. --- README.md | 4 ++-- deploy_website.sh | 4 ++-- website/index.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 402a4917530d..42c13a16d541 100644 --- a/README.md +++ b/README.md @@ -63,5 +63,5 @@ License [1]: http://square.github.io/okhttp [2]: https://github.com/square/okhttp/wiki - [3]: http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.squareup.okhttp&a=okhttp&v=LATEST - [4]: http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.squareup.okhttp&a=mockwebserver&v=LATEST + [3]: https://search.maven.org/remote_content?g=com.squareup.okhttp&a=okhttp&v=LATEST + [4]: https://search.maven.org/remote_content?g=com.squareup.okhttp&a=mockwebserver&v=LATEST diff --git a/deploy_website.sh b/deploy_website.sh index 24d0c72b4628..bbeedc2c3629 100755 --- a/deploy_website.sh +++ b/deploy_website.sh @@ -29,7 +29,7 @@ cp -R ../website/* . # Download the latest javadoc to directories like 'javadoc' or 'javadoc-urlconnection'. for DOCUMENTED_ARTIFACT in okhttp okhttp-urlconnection okhttp-apache do - curl -L "http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=$GROUP_ID&a=$DOCUMENTED_ARTIFACT&v=LATEST&c=javadoc" > javadoc.zip + curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$DOCUMENTED_ARTIFACT&v=LATEST&c=javadoc" > javadoc.zip JAVADOC_DIR="javadoc${DOCUMENTED_ARTIFACT//okhttp/}" mkdir $JAVADOC_DIR unzip javadoc.zip -d $JAVADOC_DIR @@ -37,7 +37,7 @@ do done # Download the 1.6.0 javadoc to '1.x/javadoc'. -curl -L "http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=$GROUP_ID&a=$ARTIFACT_ID&v=1.6.0&c=javadoc" > javadoc.zip +curl -L "https://search.maven.org/remote_content?g=$GROUP_ID&a=$ARTIFACT_ID&v=1.6.0&c=javadoc" > javadoc.zip mkdir -p 1.x/javadoc unzip javadoc.zip -d 1.x/javadoc rm javadoc.zip diff --git a/website/index.html b/website/index.html index fcb9ad72f97e..b6287c24a6ee 100644 --- a/website/index.html +++ b/website/index.html @@ -108,10 +108,10 @@

Post to a Server

Download

-

Latest JAR

+

Latest JAR

You'll also need Okio, which OkHttp uses for fast I/O and resizable buffers. Download the - latest JAR. + latest JAR.

The source code to OkHttp, its samples, and this website is available on GitHub.

Maven