We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c41ef52 commit 0e8b550Copy full SHA for 0e8b550
build.gradle.kts
@@ -52,7 +52,7 @@ subprojects {
52
publishing {
53
repositories {
54
maven(
55
- if (project.buildVersion().endsWith("-SNAPSHOT"))
+ if (project.publishingVersion().endsWith("-SNAPSHOT"))
56
"https://s01.oss.sonatype.org/content/repositories/snapshots/" else "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
57
) {
58
name = "ossrh"
@@ -109,7 +109,7 @@ hangarPublish {
109
version.set(buildVersion())
110
channel.set(if (!isRelease) "Snapshot" else "Release")
111
id.set("necrify")
112
- apiKey.set(System.getenv("HANGAR_API_TOKEN"))
+ apiKey.set(System.getenv("HANGAR_API_TOKEN") ?: "")
113
if (!isRelease) {
114
changelog.set(changelogMessage())
115
} else {
0 commit comments