mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
4aaefb4fe9
* Split Workflow and contracts of Finance App into separate Cordapps, part 1 - content which is different between OS and ENT is still in contract Cordapp. * Move CashSelection implementations to workflow module. * Move CashSelection implmentations to workflow module. * Move finance module to finance-flows, top level finance module is empty. * Move finance module to finance-flows, top level finance module is empty. * Updated build comment. * Revert publication of combined (contracts and flows) corda-finance.jar (to maintain backwards compatibility with 3rd party cordapps dependent on finance) * Added backwards compatibility clarification comment. * Re-instate new cordapp metadata. * Global rename of `finance-flows` to `finance-workflows` to follow adopted naming conventions. * Addressed final review comments. * Rename application to "Corda Finance Demo" * Generation of original corda-finance jar from new sub-modules. * Fixed and tested demobench with new split finance contract and workflow jars. * Renamed finance sub-modules to contracts and workflows. * Remove Michele!!! * Minor fix to filtering logic. * Align CorDapp configuration filename with workflows jar. * Fix breaks caused by finance module naming changes. * Final alignment between OS/ENT of finance contract code.
78 lines
2.7 KiB
Groovy
78 lines
2.7 KiB
Groovy
apply plugin: 'org.jetbrains.dokka'
|
|
apply plugin: 'kotlin'
|
|
|
|
dependencies {
|
|
compile rootProject
|
|
}
|
|
|
|
def internalPackagePrefixes(sourceDirs) {
|
|
def prefixes = []
|
|
// Kotlin allows packages to deviate from the directory structure, but let's assume they don't:
|
|
sourceDirs.collect { sourceDir ->
|
|
sourceDir.traverse(type: groovy.io.FileType.DIRECTORIES) {
|
|
if (it.name == 'internal') {
|
|
prefixes.add sourceDir.toPath().relativize(it.toPath()).toString().replace(File.separator, '.')
|
|
}
|
|
}
|
|
}
|
|
prefixes
|
|
}
|
|
|
|
ext {
|
|
// TODO: Add '../client/jfx/src/main/kotlin' and '../client/mock/src/main/kotlin' if we decide to make them into public API
|
|
dokkaSourceDirs = files('../core/src/main/kotlin', '../client/rpc/src/main/kotlin', '../finance/workflows/src/main/kotlin', '../finance/contracts/src/main/kotlin', '../client/jackson/src/main/kotlin',
|
|
'../testing/test-utils/src/main/kotlin', '../testing/node-driver/src/main/kotlin')
|
|
internalPackagePrefixes = internalPackagePrefixes(dokkaSourceDirs)
|
|
}
|
|
|
|
dokka {
|
|
outputDirectory = file("${rootProject.rootDir}/docs/build/html/api/kotlin")
|
|
}
|
|
|
|
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
|
|
outputFormat = "javadoc"
|
|
outputDirectory = file("${rootProject.rootDir}/docs/build/html/api/javadoc")
|
|
}
|
|
|
|
[dokka, dokkaJavadoc].collect {
|
|
it.configure {
|
|
moduleName = 'corda'
|
|
processConfigurations = ['compile']
|
|
sourceDirs = dokkaSourceDirs
|
|
includes = ['packages.md']
|
|
jdkVersion = 8
|
|
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/")
|
|
}
|
|
internalPackagePrefixes.collect { packagePrefix ->
|
|
packageOptions {
|
|
prefix = packagePrefix
|
|
suppress = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
task buildDocs(dependsOn: ['apidocs', 'makeDocs'])
|
|
task apidocs(dependsOn: ['dokka', 'dokkaJavadoc'])
|
|
|
|
task makeDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
|
|
// TODO: Non-msys Windows script
|
|
commandLine 'cmd', '/c', 'bash make-docsite.sh' // Windows
|
|
commandLine 'bash', './make-docsite.sh' // Linux
|
|
}
|
|
|
|
task installDocsiteRequirements(type: Exec) {
|
|
// TODO: Non-msys Windows script
|
|
commandLine 'cmd', '/c', 'bash install-docsite-requirements.sh' // Windows
|
|
commandLine 'bash', './install-docsite-requirements.sh' // Linux
|
|
}
|
|
|
|
apidocs.shouldRunAfter makeDocs
|