diff --git a/build.gradle.kts b/build.gradle.kts index bfa1afc..aa953c4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") } }