From a61ea19b34308fd34b682e63787d6aec61dceadb Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Wed, 8 Oct 2025 11:50:28 +0200 Subject: [PATCH] Fix check Gradle task graph contains task --- tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle b/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle index f6c6d6eb37ce..4889a77bdb9d 100644 --- a/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle +++ b/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle @@ -171,7 +171,7 @@ gradle.taskGraph.whenReady { tg -> } // verify credentials for publishing the plugin up front to avoid any work (only if we are publishing) - if ( tg.hasTask( ":publishPlugins" ) && project.tasks.publishPlugins.enabled ) { + if ( tg.hasTask( tasks.publishPlugins ) && project.tasks.publishPlugins.enabled ) { // we are publishing the plugin - make sure there is a credentials pair // // first, check the `GRADLE_PUBLISH_KEY` / `GRADLE_PUBLISH_SECRET` combo (env vars)