Skip to content

Commit

Permalink
print SONATYPE_REPOSITORY_ID immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
thebehera committed Jan 7, 2024
1 parent c7bb1b0 commit 7913a04
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ val loadAllPlatforms = !isRunningOnGithub || (isMacOS && isMainBranchGithub) ||

println(
"isRunningOnGithub: $isRunningOnGithub isMainBranchGithub: $isMainBranchGithub OS:$isMacOS " +
"Load All Platforms: $loadAllPlatforms"
"Load All Platforms: $loadAllPlatforms, SONATYPE_REPOSITORY_ID=${System.getenv("SONATYPE_REPOSITORY_ID")}"
)

val libraryVersionPrefix: String by project
Expand Down Expand Up @@ -191,15 +191,13 @@ val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
}

if (isRunningOnGithub) {
if (isMainBranchGithub) {
signing {
useInMemoryPgpKeys(
"56F1A973",
System.getenv("GPG_SECRET"),
System.getenv("GPG_SIGNING_PASSWORD")
)
sign(publishing.publications)
}
signing {
useInMemoryPgpKeys(
"56F1A973",
System.getenv("GPG_SECRET"),
System.getenv("GPG_SIGNING_PASSWORD")
)
sign(publishing.publications)
}

val ossUser = System.getenv("SONATYPE_NEXUS_USERNAME")
Expand Down

0 comments on commit 7913a04

Please sign in to comment.