Kotlin command builder DSL (#165)

This commit is contained in:
Jason 2020-12-17 23:57:32 -08:00 committed by Alexander Söderberg
parent e9178b0834
commit e93d285483
7 changed files with 756 additions and 1 deletions

View file

@ -0,0 +1,43 @@
import org.jetbrains.dokka.gradle.DokkaTask
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.21'
id 'org.jetbrains.dokka' version '1.4.20'
}
kotlin {
explicitApi()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
api project(':cloud-core')
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
}
javadocJar {
from dokkaHtml
}
tasks.withType(DokkaTask).configureEach {
dokkaSourceSets {
main {
includes.from(layout.projectDirectory.file("src/main/descriptions.md").toString())
externalDocumentationLink {
url.set(new URL("https://javadoc.commandframework.cloud/")) //todo fix KDoc linking to JavaDoc
packageListUrl.set(new URL("https://javadoc.commandframework.cloud/allpackages-index.html"))
}
}
}
}