Skip to content

Commit

Permalink
fix central publish plugin signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Denire committed Apr 7, 2021
1 parent 8793043 commit 6d53d04
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ class CentralPublish(project: Project) : PluginAdapter(project) {
private val Project.isMavenCentralPublication: Boolean
get() {
val task = project.gradle.startParameter.taskNames.firstOrNull()
return task?.endsWith("${MAVEN_CENTRAL}Repository") ?: task?.endsWith("publish") ?: false
val isPublish = task?.endsWith("publish") ?: false
val isByCentralPublishTask = task?.endsWith("${MAVEN_CENTRAL}Repository") ?: false
return isPublish || isByCentralPublishTask
}

private fun Project.extraProperty(name: String) =
Expand Down

0 comments on commit 6d53d04

Please sign in to comment.