plugins { kotlin("multiplatform") version "2.4.10" apply false kotlin("plugin.serialization") version "2.4.10" apply false id("maven-publish") } val libVersion = providers.gradleProperty("libVersion").get() allprojects { group = "cn.rtast.bldm" version = libVersion repositories { mavenCentral() } } subprojects { pluginManager.apply("maven-publish") publishing { repositories { maven("https://repo.maven.rtast.cn/releases") { name = "RTAST-PKG" credentials { username = "RTAkland" password = System.getenv("PUBLISH_TOKEN") } } maven("https://repo.rtast.cn/packages") { name = "RTAST-GIT" credentials(HttpHeaderCredentials::class) { name = "Authorization" value = "Bearer ${System.getenv("PUBLISH_TOKEN")}" } authentication { create("header") } } } } }