Apply maven publish plugin

This commit is contained in:
2026-08-30 22:17:17 +08:00
parent 539a300946
commit 0e09422b6e
2 files changed
+22 -2

No files matched your search

+19 -1
View File
@@ -1,13 +1,31 @@
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 = "1.0-SNAPSHOT"
version = libVersion
repositories {
mavenCentral()
}
}
subprojects {
pluginManager.apply("maven-publish")
publishing {
repositories {
maven("https://repo.maven.rtast.cn/snapshots") {
credentials {
username = "RTAkland"
password = System.getenv("PUBLISH_TOKEN")
}
}
}
}
}