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']
|
2017-09-14 11:55:23 +00:00
|
|
|
sourceDirs = files('../core/src/main/kotlin', '../client/jfx/src/main/kotlin', '../client/mock/src/main/kotlin', '../client/rpc/src/main/kotlin', '../node-api/src/main/kotlin', '../finance/src/main/kotlin', '../client/jackson/src/main/kotlin', '../testing/node-driver/src/main/kotlin', '../testing/test-utils/src/main/kotlin')
|
2017-09-27 10:39:41 +00:00
|
|
|
includes = ['packages.md']
|
2017-08-30 13:53:37 +00:00
|
|
|
jdkVersion = 8
|
2017-09-04 10:33:21 +00:00
|
|
|
|
|
|
|
externalDocumentationLink {
|
|
|
|
url = new URL("http://fasterxml.github.io/jackson-core/javadoc/2.8/")
|
|
|
|
}
|
|
|
|
externalDocumentationLink {
|
|
|
|
url = new URL("https://docs.oracle.com/javafx/2/api/")
|
|
|
|
}
|
|
|
|
externalDocumentationLink {
|
|
|
|
url = new URL("http://www.bouncycastle.org/docs/docs1.5on/")
|
|
|
|
}
|
2017-03-24 14:43:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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']
|
2017-09-14 11:55:23 +00:00
|
|
|
sourceDirs = files('../core/src/main/kotlin', '../client/jfx/src/main/kotlin', '../client/mock/src/main/kotlin', '../client/rpc/src/main/kotlin', '../node-api/src/main/kotlin', '../finance/src/main/kotlin', '../client/jackson/src/main/kotlin', '../testing/node-driver/src/main/kotlin', '../testing/test-utils/src/main/kotlin')
|
2017-08-17 11:12:20 +00:00
|
|
|
includes = ['packages.md']
|
2017-08-30 13:53:37 +00:00
|
|
|
jdkVersion = 8
|
2017-09-04 10:33:21 +00:00
|
|
|
|
|
|
|
externalDocumentationLink {
|
|
|
|
url = new URL("http://fasterxml.github.io/jackson-core/javadoc/2.8/")
|
|
|
|
}
|
|
|
|
externalDocumentationLink {
|
|
|
|
url = new URL("https://docs.oracle.com/javafx/2/api/")
|
|
|
|
}
|
|
|
|
externalDocumentationLink {
|
|
|
|
url = new URL("http://www.bouncycastle.org/docs/docs1.5on/")
|
|
|
|
}
|
2017-03-24 14:43:45 +00:00
|
|
|
}
|
|
|
|
|
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
|