From fd1ece1afdf1a4cd84a22d4d246791d1562808dd Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Wed, 8 Oct 2025 12:00:14 +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 926380831ac4..d4b48bae216e 100644 --- a/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle +++ b/tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle @@ -134,7 +134,7 @@ tasks.publishPlugins.enabled !project.ormVersion.isSnapshot 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)