Files
kotlin-fork/libraries/tools/dukat/build.gradle.kts
T
2022-11-10 14:22:44 +00:00

36 lines
1.1 KiB
Kotlin

plugins {
kotlin("jvm") version "1.7.20"
}
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
}
dependencies {
implementation("org.jetbrains.dukat:dukat:0.5.8-rc.5")
implementation("org.jsoup:jsoup:1.14.2")
}
task("downloadIDL", JavaExec::class) {
main = "org.jetbrains.kotlin.tools.dukat.DownloadKt"
classpath = sourceSets["main"].runtimeClasspath
dependsOn(":dukat:build")
}
task("generateStdlibFromIDL", JavaExec::class) {
main = "org.jetbrains.kotlin.tools.dukat.LaunchJsKt"
classpath = sourceSets["main"].runtimeClasspath
dependsOn(":dukat:build")
systemProperty("line.separator", "\n")
}
// Configured version of Dukat creates incorrect declarations for kotlin/wasm, pathed version located in yakovlev/dynamicAsType
// After patched version be published we need to update dukat version in dependencies here.
task("generateWasmStdlibFromIDL", JavaExec::class) {
main = "org.jetbrains.kotlin.tools.dukat.LaunchWasmKt"
classpath = sourceSets["main"].runtimeClasspath
dependsOn(":dukat:build")
systemProperty("line.separator", "\n")
}