This repository was archived by the owner on Mar 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-18
lines changed
Expand file tree Collapse file tree 2 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- if [ " $TRAVIS_REPO_SLUG " == " ExplorViz/explorviz-backend " ] && [ " $TRAVIS_JDK_VERSION " == " oraclejdk8 " ] && [ " $TRAVIS_PULL_REQUEST " == " false " ] && [ " $TRAVIS_BRANCH " == " master " ] ; then
3+ echo -e " Publishing javadoc...\n "
44
5- echo -e " Publishing javadoc...\n "
5+ cp -R docs $HOME / javadoc-latest
66
7- cp -R docs $HOME /javadoc-latest
7+ cd $HOME
8+ git config --global user.email " travis@travis-ci.org"
9+ git config --global user.name " Travis CI"
10+ git clone --quiet --branch=gh-pages https://$PersonalAccessToken @github.com/ExplorViz/explorviz-backend gh-pages > /dev/null
811
9- cd $HOME
10- git config --global user.email " travis@travis-ci.org"
11- git config --global user.name " Travis CI"
12- git clone --quiet --branch=gh-pages https://$PersonalAccessToken @github.com/ExplorViz/explorviz-backend gh-pages > /dev/null
12+ cd gh-pages
13+ git rm -rf *
14+ cp -Rf $HOME /javadoc-latest/* .
15+ git add -f .
16+ git commit -m " Latest Javadoc on successful Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
17+ git push -fq origin gh-pages > /dev/null
1318
14- cd gh-pages
15- git rm -rf *
16- cp -Rf $HOME /javadoc-latest/* .
17- git add -f .
18- git commit -m " Latest Javadoc on successful Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
19- git push -fq origin gh-pages > /dev/null
20-
21- echo -e " Published Javadoc to gh-pages.\n"
19+ echo -e " Published Javadoc to gh-pages.\n"
2220
23- fi
Original file line number Diff line number Diff line change @@ -2,8 +2,12 @@ allprojects {
22 apply plugin : ' java-library'
33}
44
5+ // defining project properties
6+ def projectVersion = ' v1.3.0'
7+ def projectURL= ' https://www.explorviz.net'
8+ def footerText = ' <span>Copyright 2013 - 2019</span> by the <a href="https://www.explorviz.net" target="_blank">ExplorViz project</a>'
59
6- // Aggregate Javadoc in multiproject Gradle build
10+ // BEGIN aggregated Javadoc in multiproject Gradle build
711def exportedProjects= [
812 ' :shared' ,
913 ' :landscape' ,
@@ -16,9 +20,12 @@ def exportedProjects= [
1620task alljavadoc (type : Javadoc ) {
1721 source exportedProjects. collect { project(it). sourceSets. main. allJava }
1822 classpath = files(exportedProjects. collect { project(it). sourceSets. main. compileClasspath })
19- destinationDir = file(" ${ buildDir} /docs/javadoc" )
23+ destinationDir = file(" ./docs" )
24+ title = ' explorviz-backend API ' + projectVersion
25+ options. setFooter(footerText)
2026}
2127
28+ // END aggregated Javadoc in multiproject Gradle build
2229subprojects {
2330
2431 // BEGIN QA Tooling for subprojects
You can’t perform that action at this time.
0 commit comments