34 lines
744 B
Kotlin
34 lines
744 B
Kotlin
plugins {
|
|
kotlin("jvm") version "2.1.20"
|
|
id("maven-publish")
|
|
}
|
|
|
|
val pluginVersion: String by extra
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.maven.rtast.cn/releases/")
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
group = "cn.rtast.runbroker"
|
|
version = pluginVersion
|
|
|
|
apply(plugin = "org.jetbrains.kotlin.jvm")
|
|
apply(plugin = "maven-publish")
|
|
|
|
publishing {
|
|
repositories {
|
|
// mavenLocal()
|
|
maven("http://192.168.10.222:9098/releases") {
|
|
isAllowInsecureProtocol = true
|
|
credentials {
|
|
username = "RTAkland"
|
|
password = System.getenv("PUBLISH_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |