1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 00:03:48 +00:00

Update to 1.4.0

This commit is contained in:
Gabryel Monteiro 2020-10-18 22:38:16 -03:00
parent e85e7d02f7
commit ffa78ebfe1
3 changed files with 27 additions and 14 deletions

View File

@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}")
}
}
@ -66,9 +66,7 @@ private Closure includeSourcesInDokka(String... approximateNames) {
}
}
dokka {
outputFormat = 'html'
tasks.dokkaHtml {
switch (true) {
case project.hasProperty("DOKKA_PATH"):
outputDirectory = project.property("DOKKA_PATH").toString()
@ -78,19 +76,27 @@ dokka {
break
}
multiplatform {
global {
skipDeprecated = true
dokkaSourceSets {
configureEach {
skipDeprecated.set(true)
sourceLink {
path = "./"
url = "https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/"
lineSuffix = "#L"
localDirectory.set(file("./"))
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/"))
remoteLineSuffix.set("#L")
}
}
common(includeSourcesInDokka("commonMain"))
js(includeSourcesInDokka("jsMain"/*, "commonMain"*/))
jvm(includeSourcesInDokka("jvmMain"/*, "commonMain"*/))
named("commonMain") {
includeSourcesInDokka("commonMain")
}
named("jsMain") {
includeSourcesInDokka("jsMain/*", "commonMain/*")
}
named("jvmMain") {
includeSourcesInDokka("jvmMain/*", "commonMain/*")
}
}
}

View File

@ -1,3 +1,3 @@
dokka_version=0.10.1
dokka_version=1.4.0
org.gradle.jvmargs=-Xmx1024m

View File

@ -1,3 +1,10 @@
pluginManagement {
repositories {
gradlePluginPortal()
jcenter()
}
}
include ":tgbotapi.core"
include ":tgbotapi.extensions.api"
include ":tgbotapi.extensions.utils"