2024-11-06 11:30:43 +01:00
|
|
|
plugins {
|
2024-11-08 16:26:59 +01:00
|
|
|
kotlin("multiplatform") version "2.0.20"
|
|
|
|
id("maven-publish")
|
|
|
|
id("signing")
|
2024-11-06 11:30:43 +01:00
|
|
|
}
|
|
|
|
|
2024-11-08 16:26:59 +01:00
|
|
|
group = "org.thundernetwork.chatrum"
|
2024-11-06 11:30:43 +01:00
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
2024-11-08 16:26:59 +01:00
|
|
|
maven("https://repository.thundernetwork.org/repository/maven-central/")
|
2024-11-06 11:30:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
|
2024-11-08 16:26:59 +01:00
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
js (IR) {
|
|
|
|
nodejs {}
|
|
|
|
binaries.library()
|
|
|
|
generateTypeScriptDefinitions()
|
|
|
|
useEsModules()
|
|
|
|
|
|
|
|
compilations["main"].packageJson {
|
|
|
|
customField("types", "kotlin/${project.name}.d.ts")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jsMain by getting {
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
js {
|
|
|
|
compilations["main"].packageJson {
|
|
|
|
customField("homepage", "https://source.thundernetwork.org/ThunderNetworkRaD/chatrum")
|
|
|
|
}
|
|
|
|
}
|
2024-11-06 11:30:43 +01:00
|
|
|
}
|