Fix publish plugin

This commit is contained in:
redtea committed 2024-06-27 23:59:03 +03:00
1 parent 4fccb6bcec
commit fc76eb1160
10 files changed
+24 -21

No files matched your search

+6 -3
View File
@@ -4,6 +4,7 @@ plugins {
id("java")
kotlin("jvm")
id("com.github.johnrengelman.shadow") version "7.1.2"
id("maven-publish")
id("signing")
}
@@ -101,17 +102,19 @@ publishing {
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
credentials {
username = "itzRedTea"
password = project.findProperty("password").toString()
username = project.findProperty("ossrhUsername").toString()
password = project.findProperty("ossrhPassword").toString()
}
}
}
}
signing {
useGpgCmd()
sign(publishing.publications.getByName("maven"))
sign(publishing.publications.asMap.values.first())
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {