mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-07-01 15:45:31 +00:00
Dependency bumps: Kotlin 2.3.20->2.3.21, Coroutines 1.10.2->1.11.0,
Ktor 3.4.2->3.5.1, KSP 2.3.6->2.3.9, MicroUtils 0.29.2->0.30.0,
Dokka 2.0.0->2.2.0, Versions plugin 0.53.0->0.54.0, NMCP 1.4.4->1.6.0.
Gradle wrapper 8.13->9.6.1 with build-script fixes for Gradle 9:
Project.exec() -> providers.exec(), tasks.whenTaskAdded -> tasks.configureEach.
Dokka migrated to the Dokka Gradle Plugin v2. The docs module is now
included as the KDocs aggregator (dokka {} DSL with sourceRoots, new URI,
ProcessIsolation heap for the generator worker), excluded from binary
compatibility validation, and the kdocs workflow runs :docs:dokkaGenerate.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
72 lines
2.0 KiB
Groovy
72 lines
2.0 KiB
Groovy
plugins {
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
id "org.jetbrains.kotlin.plugin.serialization"
|
|
id "org.jetbrains.dokka"
|
|
}
|
|
|
|
project.description = "Full collection of all built-in tgbotapi tools"
|
|
|
|
apply from: "$mppProjectWithSerialization"
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
api project(":tgbotapi.core")
|
|
api project(":tgbotapi.api")
|
|
api project(":tgbotapi.utils")
|
|
api project(":tgbotapi.behaviour_builder")
|
|
api project(":tgbotapi.behaviour_builder.fsm")
|
|
api project(":tgbotapi")
|
|
}
|
|
}
|
|
jsMain {
|
|
dependencies {
|
|
api project(":tgbotapi.webapps")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
private List<SourceDirectorySet> findSourcesWithName(String... approximateNames) {
|
|
return parent.subprojects
|
|
.findAll { it != project && it.hasProperty("kotlin") }
|
|
.collectMany { it.kotlin.sourceSets }
|
|
.findAll { sourceSet ->
|
|
approximateNames.any { nameToFilter ->
|
|
sourceSet.name.contains(nameToFilter)
|
|
}
|
|
}.collect { it.kotlin }
|
|
}
|
|
|
|
dokka {
|
|
// aggregating every module's sources into one publication needs more heap than the worker default
|
|
dokkaGeneratorIsolation = ProcessIsolation {
|
|
it.maxHeapSize.set("4g")
|
|
}
|
|
|
|
dokkaSourceSets {
|
|
configureEach {
|
|
skipDeprecated.set(true)
|
|
|
|
sourceLink {
|
|
localDirectory.set(file("../"))
|
|
remoteUrl.set(new URI("https://github.com/InsanusMokrassar/ktgbotapi"))
|
|
remoteLineSuffix.set("#L")
|
|
}
|
|
}
|
|
|
|
named("commonMain") {
|
|
sourceRoots.setFrom(findSourcesWithName("commonMain"))
|
|
}
|
|
|
|
named("jsMain") {
|
|
sourceRoots.setFrom(findSourcesWithName("jsMain"))
|
|
}
|
|
|
|
named("jvmMain") {
|
|
sourceRoots.setFrom(findSourcesWithName("jvmMain"))
|
|
}
|
|
}
|
|
}
|