Files
libmc/libmc-protocol/build.gradle.kts
T

38 lines
894 B
Kotlin
Raw Permalink Normal View History

2026-09-05 00:17:22 +08:00
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
kotlin {
explicitApi()
withSourcesJar()
linuxX64()
linuxArm64()
macosArm64()
mingwX64()
jvm { compilerOptions.jvmTarget = JvmTarget.JVM_1_8 }
sourceSets {
commonMain.dependencies {
2026-09-05 14:19:51 +08:00
api(project(":common"))
api(project(":nbt"))
2026-09-05 00:17:22 +08:00
}
2026-09-09 01:23:47 +08:00
jvmMain.dependencies {}
2026-09-05 00:17:22 +08:00
commonTest.dependencies {
implementation(kotlin("test"))
implementation(libs.kotlinx.coroutines.test)
implementation(libs.ktor.network)
2026-09-09 01:23:47 +08:00
implementation(libs.ktor.client.core)
2026-09-05 00:17:22 +08:00
}
2026-09-07 03:15:53 +08:00
jvmTest.dependencies {
2026-09-07 10:07:10 +08:00
implementation(libs.ktor.client.okhttp)
}
2026-09-09 01:23:47 +08:00
nativeTest.dependencies {
2026-09-07 10:07:10 +08:00
implementation(libs.ktor.client.curl)
}
2026-09-05 00:17:22 +08:00
}
2026-09-09 01:23:47 +08:00
compilerOptions.freeCompilerArgs.addAll("-Xexpect-actual-classes")
2026-09-05 00:17:22 +08:00
}