Fix preparePublication.kt for empty repository-url
This commit is contained in:
committed by
Space Team
parent
d5f4cd72b7
commit
d7fadcbab5
@@ -27,7 +27,7 @@ fun Project.preparePublication() {
|
||||
val isSonatypePublish: Boolean by extra(repoProvider == "sonatype")
|
||||
val isSonatypeRelease: Boolean by extra(isSonatypePublish && isRelease)
|
||||
|
||||
val deployRepoUrl = properties["deployRepoUrl"]?.toString() ?: properties["deploy-url"]?.toString()
|
||||
val deployRepoUrl = (properties["deployRepoUrl"] ?: properties["deploy-url"])?.toString()?.takeIf { it.isNotBlank() }
|
||||
val deployFolder = properties["deployRepoFolder"]?.toString()
|
||||
?.let { "file://${rootProject.buildDir}/$it" }
|
||||
val sonatypeSnapshotsUrl = if (isSonatypePublish && !isRelease) {
|
||||
|
||||
Reference in New Issue
Block a user