diff options
| -rw-r--r-- | build.gradle | 2 | ||||
| -rw-r--r-- | docs/packages.md | 2 | ||||
| -rw-r--r-- | gradle/dokka.gradle | 47 | ||||
| -rw-r--r-- | gradle/kotlin.gradle | 5 |
4 files changed, 51 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle index f3e5996c..f8a34688 100644 --- a/build.gradle +++ b/build.gradle @@ -35,6 +35,7 @@ allprojects { ext { junit_jupiter_version = '5.3.1' junit_platform_version = '1.3.1' + github_url = "https://github.com/atlarge-research/${rootProject.name}" } } @@ -46,3 +47,4 @@ wrapper { project.evaluationDependsOnChildren() apply from: 'gradle/jacoco.gradle' +apply from: 'gradle/dokka.gradle' diff --git a/docs/packages.md b/docs/packages.md new file mode 100644 index 00000000..16465da7 --- /dev/null +++ b/docs/packages.md @@ -0,0 +1,2 @@ +# Module odcsim + diff --git a/gradle/dokka.gradle b/gradle/dokka.gradle new file mode 100644 index 00000000..e8e47d2d --- /dev/null +++ b/gradle/dokka.gradle @@ -0,0 +1,47 @@ +/* + * MIT License + * + * Copyright (c) 2018 atlarge-research + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* Documentation generation for project */ +apply plugin: 'org.jetbrains.dokka' + +repositories { + jcenter() +} + +dokka { + moduleName = 'odcsim' + outputFormat = 'html' + kotlinTasks { + subprojects.compileKotlin + } + includes = ['docs/packages.md'] + samples = [] + jdkVersion = 8 + + linkMapping { + dir = rootProject.projectDir.absolutePath + url = "$github_url/tree/master" + suffix = '#L' + } +} diff --git a/gradle/kotlin.gradle b/gradle/kotlin.gradle index 6e85235d..e24a3c70 100644 --- a/gradle/kotlin.gradle +++ b/gradle/kotlin.gradle @@ -24,7 +24,6 @@ /* Default configuration for Kotlin projects */ apply plugin: 'kotlin' -apply plugin: 'org.jetbrains.dokka' apply plugin: 'org.jlleitschuh.gradle.ktlint' apply plugin: 'jacoco' @@ -63,7 +62,3 @@ jacocoTestReport { html.enabled = true } } - -/* Documentation generation */ -dokka {} - |
