2017-03-24 14:43:45 +00:00
|
|
|
apply plugin: 'org.jetbrains.dokka'
|
2017-03-28 15:12:38 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile rootProject
|
|
|
|
}
|
2017-03-24 14:43:45 +00:00
|
|
|
|
|
|
|
dokka {
|
|
|
|
moduleName = 'corda'
|
2017-03-28 15:12:38 +00:00
|
|
|
outputDirectory = file("${rootProject.rootDir}/docs/build/html/api/kotlin")
|
2017-03-24 14:43:45 +00:00
|
|
|
processConfigurations = ['compile']
|
|
|
|
sourceDirs = files('../core/src/main/kotlin', '../client/jfx/src/main/kotlin', '../client/mock/src/main/kotlin', '../client/rpc/src/main/kotlin', '../node/src/main/kotlin', '../finance/src/main/kotlin', '../client/jackson/src/main/kotlin')
|
|
|
|
}
|
|
|
|
|
|
|
|
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
|
|
|
|
moduleName = 'corda'
|
|
|
|
outputFormat = "javadoc"
|
2017-03-28 15:12:38 +00:00
|
|
|
outputDirectory = file("${rootProject.rootDir}/docs/build/html/api/javadoc")
|
2017-03-24 14:43:45 +00:00
|
|
|
processConfigurations = ['compile']
|
|
|
|
sourceDirs = files('../core/src/main/kotlin', '../client/jfx/src/main/kotlin', '../client/mock/src/main/kotlin', '../client/rpc/src/main/kotlin', '../node/src/main/kotlin', '../finance/src/main/kotlin', '../client/jackson/src/main/kotlin')
|
|
|
|
}
|
|
|
|
|
2017-03-28 13:59:16 +00:00
|
|
|
task buildDocs(dependsOn: ['apidocs', 'makeDocs'])
|
2017-03-28 15:12:38 +00:00
|
|
|
task apidocs(dependsOn: ['dokka', 'dokkaJavadoc'])
|
|
|
|
|
|
|
|
task makeDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
|
|
|
|
// TODO: Non-msys Windows script
|
2017-04-03 15:45:55 +00:00
|
|
|
commandLine 'cmd', '/c', 'bash make-docsite.sh' // Windows
|
|
|
|
commandLine 'bash', './make-docsite.sh' // Linux
|
2017-03-28 15:12:38 +00:00
|
|
|
}
|
2017-03-24 14:43:45 +00:00
|
|
|
|
|
|
|
task installDocsiteRequirements(type: Exec) {
|
2017-03-24 16:23:12 +00:00
|
|
|
// TODO: Non-msys Windows script
|
2017-04-03 15:45:55 +00:00
|
|
|
commandLine 'cmd', '/c', 'bash install-docsite-requirements.sh' // Windows
|
|
|
|
commandLine 'bash', './install-docsite-requirements.sh' // Linux
|
2017-03-24 14:43:45 +00:00
|
|
|
}
|
|
|
|
|
2017-04-03 15:45:55 +00:00
|
|
|
apidocs.shouldRunAfter makeDocs
|