-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61b8532
commit baff2f1
Showing
3 changed files
with
39 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,42 @@ allprojects { | |
configFile = new File(rootDir, "checkstyle.xml") | ||
} | ||
} | ||
|
||
task publishJavadoc(type: Exec) { | ||
dependsOn "javadoc" | ||
commandLine "bash", "-c", | ||
''' | ||
REPO="[email protected]:pieces029/shillelagh.git" | ||
DIR=temp-clone | ||
# Delete any existing temporary website clone | ||
rm -rf $DIR | ||
# Clone the current repo into temp folder | ||
git clone $REPO $DIR | ||
# Move working directory into temp folder | ||
cd $DIR | ||
# Checkout and track the gh-pages branch | ||
git checkout -t origin/gh-pages | ||
# Delete everything | ||
rm -rf * | ||
# Copy everything from javadocs folder | ||
cp -r ../shillelagh/build/docs/javadoc/* . | ||
# Stage all files in git and create a commit | ||
git add . | ||
git add -u | ||
git commit -m "Website at \$(date)" | ||
# Push the new files up to GitHub | ||
git push origin gh-pages | ||
# Delete our temp folder | ||
cd .. | ||
rm -rf $DIR | ||
''' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ def setBuildFile(project) { | |
} | ||
} | ||
|
||
setBuildFile(rootProject) | ||
rootProject.children.each { | ||
setBuildFile(it) | ||
} |