Fix publish plugin
This commit is contained in:
1 parent
4fccb6bcec
commit
fc76eb1160
10 files changed
+24
-21
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user