Add publishing config
This commit is contained in:
1 file changed
+18
-2
+18
-2
@@ -1,9 +1,12 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform") version "2.2.10"
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
group = "cn.rtast.nmdns"
|
||||
version = "1.0-SNAPSHOT"
|
||||
version = "0.0.1"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -14,7 +17,7 @@ kotlin {
|
||||
linuxX64()
|
||||
mingwX64()
|
||||
macosArm64()
|
||||
jvm()
|
||||
jvm { compilerOptions { jvmTarget = JvmTarget.JVM_11 } }
|
||||
|
||||
sourceSets {
|
||||
commonMain.dependencies {
|
||||
@@ -26,3 +29,16 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven("https://repo.maven.rtast.cn/releases") {
|
||||
name = "RTAST"
|
||||
credentials {
|
||||
username = "RTAkland"
|
||||
password = System.getenv("PUBLISH_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user