Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add javadocs deploy to Alpaca gradle build; Resolves https://github.c… #24

Merged
merged 6 commits into from
Dec 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ install:
script:
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- ./gradlew --stacktrace build
- ./gradlew --stacktrace docs

notifications:
irc: "irc.freenode.org#islandora"
28 changes: 10 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'com.github.hierynomus.license' version '0.13.1'
id 'net.researchgate.release' version '2.4.0'
id 'org.ajoberstar.github-pages' version '1.5.1'
}

allprojects {
Expand All @@ -24,8 +23,8 @@ allprojects {
tagTemplate = '$name-$version'
}


afterReleaseBuild.dependsOn uploadArchives
afterReleaseBuild.dependsOn publishGhPages
}

subprojects {
Expand Down Expand Up @@ -77,7 +76,7 @@ subprojects {
classifier 'javadoc'
from javadoc
}

artifacts {
archives javadocJar
archives sourceJar
Expand Down Expand Up @@ -115,13 +114,6 @@ subprojects {
sign configurations.archives
}

githubPages {
pages {
from javadoc
into "docs/${version}"
}
}

uploadArchives {
repositories.mavenDeployer {
def sonatypeUsername = project.hasProperty('ossrhUsername') ? ossrhUsername : ""
Expand Down Expand Up @@ -170,14 +162,6 @@ subprojects {
url 'https://github.com/Islandora-CLAW/CLAW/issues'
}

distributionManagement {
site {
id 'gh-pages'
name "Deployment through GitHub's site deployment plugin"
url 'http://islandora-claw.github.io/Alpaca/site/' + project.version
}
}

developers {
developer {
id 'dannylamb'
Expand Down Expand Up @@ -214,3 +198,11 @@ subprojects {
}
}
}

task docs(type: Javadoc) {
source subprojects.collect {project -> project.sourceSets.main.allJava }
classpath = files(subprojects.collect {project -> project.sourceSets.main.compileClasspath})
destinationDir = new File(projectDir, "docs/${version}")
}

afterReleaseBuild.dependsOn docs