Skip to content

Commit 5bc9d7f

Browse files
committed
Publication config fixed (take 1)
[skip ci]
1 parent 04c4bdb commit 5bc9d7f

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

build.gradle.kts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ tasks.register("runTimerUnitTests") {
117117
tasks.register("displayVersion") {
118118
description = "Display application version name"
119119
doLast {
120-
// Ensure 'versionName' is accessible here.
121-
// If it's from ext block in allprojects, it might need to be accessed via project.versionName or project.extra["versionName"]
122-
// Or re-fetch from buildVersionName() if that's more direct
123120
println("Application version: ${buildVersionName()}")
124121
}
125122
}
@@ -138,16 +135,16 @@ tasks.register("runUnitTests") {
138135
description = "Run unit tests for all modules."
139136
}
140137

141-
val ossrhUsernameProp: String? by extra
142-
val ossrhPasswordProp: String? by extra
138+
val ossrhUsername: String? by extra
139+
val ossrhPassword: String? by extra
143140

144141
nexusPublishing {
145142
repositories {
146143
sonatype {
147144
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
148145
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
149-
username.set(ossrhUsernameProp)
150-
password.set(ossrhPasswordProp)
146+
username.set(ossrhUsername)
147+
password.set(ossrhPassword)
151148
}
152149
}
153150
}

0 commit comments

Comments
 (0)