Skip to content

Commit 0e8b550

Browse files
committed
Use correct version to determine publishing repository
1 parent c41ef52 commit 0e8b550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ subprojects {
5252
publishing {
5353
repositories {
5454
maven(
55-
if (project.buildVersion().endsWith("-SNAPSHOT"))
55+
if (project.publishingVersion().endsWith("-SNAPSHOT"))
5656
"https://s01.oss.sonatype.org/content/repositories/snapshots/" else "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
5757
) {
5858
name = "ossrh"
@@ -109,7 +109,7 @@ hangarPublish {
109109
version.set(buildVersion())
110110
channel.set(if (!isRelease) "Snapshot" else "Release")
111111
id.set("necrify")
112-
apiKey.set(System.getenv("HANGAR_API_TOKEN"))
112+
apiKey.set(System.getenv("HANGAR_API_TOKEN") ?: "")
113113
if (!isRelease) {
114114
changelog.set(changelogMessage())
115115
} else {

0 commit comments

Comments
 (0)