66 lines
1.2 KiB
Kotlin
66 lines
1.2 KiB
Kotlin
plugins {
|
|
kotlin("multiplatform") version "2.0.20"
|
|
}
|
|
|
|
group = "nl.astraeus"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
kotlin {
|
|
jvm {
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
}
|
|
js {
|
|
browser {
|
|
distribution {
|
|
outputDirectory.set(file("$projectDir/web/"))
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(kotlin("stdlib"))
|
|
}
|
|
}
|
|
|
|
val commonTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-common"))
|
|
}
|
|
}
|
|
|
|
val jvmMain by getting {
|
|
dependencies {
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
}
|
|
}
|
|
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test"))
|
|
}
|
|
}
|
|
|
|
val jsMain by getting {
|
|
dependencies {
|
|
implementation(kotlin("stdlib-js"))
|
|
}
|
|
}
|
|
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
}
|
|
}
|