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

View File

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