TelegramBotAPI-examples/WebApp/build.gradle

64 lines
1.6 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
2022-05-17 12:58:43 +00:00
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
2024-12-07 05:36:39 +00:00
id "org.jetbrains.kotlin.plugin.compose" version "$kotlin_version"
id "org.jetbrains.compose" version "$compose_version"
}
apply plugin: 'application'
kotlin {
jvm()
js(IR) {
browser()
binaries.executable()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
2022-05-17 12:58:43 +00:00
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$serialization_version"
2024-12-07 05:36:39 +00:00
implementation compose.runtime
}
}
jsMain {
dependencies {
implementation "dev.inmo:tgbotapi.webapps:$telegram_bot_api_version"
2024-12-07 05:36:39 +00:00
implementation compose.web.core
}
}
jvmMain {
dependencies {
implementation "dev.inmo:tgbotapi:$telegram_bot_api_version"
implementation "dev.inmo:micro_utils.ktor.server:$micro_utils_version"
2022-05-04 07:27:39 +00:00
implementation "io.ktor:ktor-server-cio:$ktor_version"
2024-12-07 05:36:39 +00:00
implementation compose.desktop.currentOs
}
}
}
}
application {
mainClassName = "WebAppServerKt"
}
tasks.getByName("compileKotlinJvm")
.dependsOn(jsBrowserDistribution)
tasks.getByName("compileKotlinJvm").configure {
mustRunAfter jsBrowserDistribution
}