Skip to content

Commit

Permalink
Use project property not task property for credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed Apr 17, 2024
1 parent 7b34dac commit 2b5efe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ tasks {
if (isSnapshot) {
throw GradleException("Cannot publish a developer build to the Gradle Plugin Portal")
}
if (!hasProperty("gradle.publish.key") || !hasProperty("gradle.publish.secret")) {
if (!project.hasProperty("gradle.publish.key") || !project.hasProperty("gradle.publish.secret")) {
throw GradleException("Gradle Plugin Portal credentials not defined")
}
}
Expand Down

0 comments on commit 2b5efe5

Please sign in to comment.