Not sure what else I can say, build fails immediately after changing the version number. Here is the output and my build.gradle.kts file:
Build file 'D:\Ronati\attribute-system\build.gradle.kts' line: 1
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform', version: '1.5.31']
> Failed to apply plugin [id 'org.jetbrains.kotlin.multiplatform']
> Unknown hardware platform: x86
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Any suggestions are appreciated!
plugins {
kotlin("multiplatform") version "1.5.31"
kotlin("plugin.serialization") version "1.5.10"
application
}
val ktorVersion = "1.6.2"
group = "me.chris"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
withJava()
}
js(LEGACY) {
binaries.executable()
browser {
commonWebpackConfig {
cssSupport.enabled = true
}
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-html-builder:$ktorVersion")
implementation("io.ktor:ktor-serialization:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2")
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.1.0")
}
}
val jvmTest by getting {
dependencies {
runtimeOnly ("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
}
val jsMain by getting {
dependencies {
implementation("org.jetbrains.kotlin-wrappers:kotlin-react:17.0.2-pre.206-kotlin-1.5.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom:17.0.2-pre.206-kotlin-1.5.10")
}
}
val jsTest by getting {
dependencies {
implementation("io.github.mysticfall:kotlin-react-test:1.1.0")
}
}
}
}
//application {
// mainClass.set("ServerKt")
//}
tasks.named<Copy>("jvmProcessResources") {
val jsBrowserDistribution = tasks.named("jsBrowserDistribution")
from(jsBrowserDistribution)
}
tasks.named<JavaExec>("run") {
dependsOn(tasks.named<Jar>("jvmJar"))
classpath(tasks.named<Jar>("jvmJar"))
}