✨ Kotlin command builder DSL (#165)
This commit is contained in:
parent
e9178b0834
commit
e93d285483
7 changed files with 756 additions and 1 deletions
43
cloud-kotlin-extensions/build.gradle
Normal file
43
cloud-kotlin-extensions/build.gradle
Normal 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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue