Skip to content

Commit

Permalink
Simplify javadoc generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhalterman committed Mar 22, 2017
1 parent cd010d0 commit d4830aa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
25 changes: 15 additions & 10 deletions bin/push-javadoc.sh
@@ -1,11 +1,16 @@
#!/bin/sh
# run from bin dir
cd ../
rm -rf docs
git clone git@github.com:jhalterman/modelmapper.git docs -b gh-pages
cd core
mvn -Pjavadoc javadoc:javadoc
cd ../docs
git add -A
git commit -m "updated javadocs"
git push origin gh-pages
# Pushes javadocs for current build
# Run from top level dir

mvn javadoc:javadoc
rm -rf target/docs
git clone git@github.com:modelmapper/modelmapper.github.io.git target/docs > /dev/null
cd target/docs
git rm -rf javadoc
mkdir -p javadoc
mv -v ../../core/target/site/apidocs/* javadoc
git add -A -f javadoc
git commit -m "Updated JavaDocs"
git push -fq origin master > /dev/null

echo "Published Javadoc to modelmapper.github.io.\n"
21 changes: 0 additions & 21 deletions core/pom.xml
Expand Up @@ -231,25 +231,4 @@
</plugins>
</build>

<profiles>
<profile>
<id>javadoc</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<author>false</author>
<protected>true</protected>
<excludePackageNames>*.internal</excludePackageNames>
<reportOutputDirectory>../docs</reportOutputDirectory>
<destDir>javadoc</destDir>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
1 change: 1 addition & 0 deletions pom.xml
Expand Up @@ -95,6 +95,7 @@
<additionalparam>
-Xdoclint:none
-notimestamp
-link http://docs.oracle.com/javase/8/docs/api/
</additionalparam>
</configuration>
</plugin>
Expand Down

0 comments on commit d4830aa

Please sign in to comment.