Split rconlib and mcping
This commit is contained in:
38 files changed
+350
-268
No files matched your search
+22
-47
@@ -1,56 +1,31 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform") version "2.4.10"
|
||||
kotlin("multiplatform") version "2.4.10" apply false
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
group = "cn.rtast.mcping"
|
||||
version = providers.gradleProperty("libVersion").get()
|
||||
allprojects {
|
||||
group = "cn.rtast.mcping"
|
||||
version = providers.gradleProperty("libVersion").get()
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
kotlin {
|
||||
explicitApi()
|
||||
|
||||
linuxX64()
|
||||
linuxArm64()
|
||||
macosArm64()
|
||||
mingwX64()
|
||||
iosArm64()
|
||||
iosSimulatorArm64()
|
||||
jvm { compilerOptions.jvmTarget = JvmTarget.JVM_1_8 }
|
||||
|
||||
sourceSets {
|
||||
jvmMain.dependencies {
|
||||
// no dependencies needed
|
||||
}
|
||||
|
||||
nativeMain.dependencies {
|
||||
implementation("io.ktor:ktor-network:3.5.2")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.9.1")
|
||||
}
|
||||
|
||||
commonTest.dependencies {
|
||||
implementation(kotlin("test"))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0")
|
||||
}
|
||||
}
|
||||
|
||||
compilerOptions.freeCompilerArgs.addAll("-Xexpect-actual-classes")
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven("https://repo.rtast.cn/packages") {
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = "Authorization"
|
||||
value = "Bearer ${System.getenv("PUBLISH_TOKEN")}"
|
||||
}
|
||||
authentication {
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
pluginManager.apply("org.jetbrains.kotlin.multiplatform")
|
||||
pluginManager.apply("maven-publish")
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven("https://repo.rtast.cn/packages") {
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = "Authorization"
|
||||
value = "Bearer ${System.getenv("PUBLISH_TOKEN")}"
|
||||
}
|
||||
authentication {
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user