Files
libmc/build.gradle.kts
T

32 lines
798 B
Kotlin
Raw Normal View History

2026-09-03 19:32:46 +08:00
plugins {
2026-09-04 00:19:17 +08:00
kotlin("multiplatform") version "2.4.10" apply false
2026-09-03 19:32:46 +08:00
id("maven-publish")
}
2026-09-04 00:19:17 +08:00
allprojects {
group = "cn.rtast.mcping"
version = providers.gradleProperty("libVersion").get()
2026-09-03 19:32:46 +08:00
2026-09-04 00:19:17 +08:00
repositories {
mavenCentral()
2026-09-03 19:32:46 +08:00
}
}
2026-09-04 00:19:17 +08:00
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")
}
2026-09-03 19:32:46 +08:00
}
}
}
}