Commit aafb1f58 authored by acoburn's avatar acoburn
Browse files

add better docs builder

parent e07320e3
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 {
......@@ -113,6 +112,7 @@ subprojects {
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
......@@ -154,14 +154,6 @@ subprojects {
sign configurations.archives
}
githubPages {
repoUri = 'git@gitlab.amherst.edu:acdc/repository-extension-services.git'
pages {
from javadoc
into "docs/${version}/${project.name}"
}
}
uploadArchives {
repositories.mavenDeployer {
def sonatypeUsername = project.hasProperty('ossrhUsername') ? ossrhUsername : ""
......@@ -233,7 +225,6 @@ subprojects {
if (project.name != 'acrepo-itests') {
afterReleaseBuild.dependsOn uploadArchives
afterReleaseBuild.dependsOn publishGhPages
}
}
......@@ -241,6 +232,7 @@ configurations {
buildToolsConfig
}
dependencies {
buildToolsConfig "edu.amherst.acdc:acrepo-build-tools:0.1.0"
}
......@@ -257,5 +249,12 @@ task processBuildTools(type: Copy) {
into 'build'
}
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}")
}
check.dependsOn processBuildTools
afterReleaseBuild.dependsOn docs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment