Skip to content

Commit

Permalink
Use new central artifact redirect link.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Nov 19, 2014
1 parent 434135b commit 9aab648
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions deploy_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ 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
rm javadoc.zip
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
Expand Down
4 changes: 2 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ <h4>Post to a Server</h4>
</pre>

<h3 id="download">Download</h3>
<p><a href="http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.squareup.okhttp&a=okhttp&v=LATEST" class="dl version-href">&darr; <span class="version-tag">Latest</span> JAR</a></p>
<p><a href="https://search.maven.org/remote_content?g=com.squareup.okhttp&a=okhttp&v=LATEST" class="dl version-href">&darr; <span class="version-tag">Latest</span> JAR</a></p>
<p>You'll also need <a href="http://github.com/square/okio">Okio</a>, which OkHttp
uses for fast I/O and resizable buffers. Download the
<a href="http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.squareup.okio&a=okio&v=LATEST">latest JAR</a>.
<a href="https://search.maven.org/remote_content?g=com.squareup.okio&a=okio&v=LATEST">latest JAR</a>.
<p>The source code to OkHttp, its samples, and this website is <a href="http://github.com/square/okhttp">available on GitHub</a>.</p>

<h4>Maven</h4>
Expand Down

0 comments on commit 9aab648

Please sign in to comment.