File tree 3 files changed +45
-4
lines changed
3 files changed +45
-4
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,20 @@ rm -rf *
26
26
# Copy website files from real repo
27
27
cp -R ../website/* .
28
28
29
- # Download the latest javadoc
30
- curl -L " http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=$GROUP_ID &a=$ARTIFACT_ID &v=LATEST&c=javadoc" > javadoc.zip
31
- mkdir javadoc
32
- unzip javadoc.zip -d javadoc
29
+ # Download the latest javadoc to directories like 'javadoc' or 'javadoc-urlconnection'.
30
+ for DOCUMENTED_ARTIFACT in okhttp okhttp-urlconnection okhttp-apache
31
+ do
32
+ 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
33
+ JAVADOC_DIR=" javadoc${DOCUMENTED_ARTIFACT// okhttp/ } "
34
+ mkdir $JAVADOC_DIR
35
+ unzip javadoc.zip -d $JAVADOC_DIR
36
+ rm javadoc.zip
37
+ done
38
+
39
+ # Download the 1.6.0 javadoc to '1.x/javadoc'.
40
+ 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
41
+ mkdir -p 1.x/javadoc
42
+ unzip javadoc.zip -d 1.x/javadoc
33
43
rm javadoc.zip
34
44
35
45
# Stage all files in git and create a commit
Original file line number Diff line number Diff line change 36
36
<scope >test</scope >
37
37
</dependency >
38
38
</dependencies >
39
+
40
+ <build >
41
+ <plugins >
42
+ <plugin >
43
+ <groupId >org.apache.maven.plugins</groupId >
44
+ <artifactId >maven-javadoc-plugin</artifactId >
45
+ <configuration >
46
+ <links >
47
+ <link >http://square.github.io/okhttp/javadoc/</link >
48
+ <link >http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/</link >
49
+ <link >https://hc.apache.org/httpcomponents-core-4.3.x/httpcore/apidocs/</link >
50
+ </links >
51
+ </configuration >
52
+ </plugin >
53
+ </plugins >
54
+ </build >
39
55
</project >
Original file line number Diff line number Diff line change 25
25
<scope >test</scope >
26
26
</dependency >
27
27
</dependencies >
28
+
29
+ <build >
30
+ <plugins >
31
+ <plugin >
32
+ <groupId >org.apache.maven.plugins</groupId >
33
+ <artifactId >maven-javadoc-plugin</artifactId >
34
+ <configuration >
35
+ <excludePackageNames >com.squareup.okhttp.internal.*</excludePackageNames >
36
+ <links >
37
+ <link >http://square.github.io/okhttp/javadoc/</link >
38
+ </links >
39
+ </configuration >
40
+ </plugin >
41
+ </plugins >
42
+ </build >
28
43
</project >
You can’t perform that action at this time.
0 commit comments