diff --git a/.mvn/gradle-enterprise.xml b/.mvn/gradle-enterprise.xml
index 3d9c369b492e2..0b5d0bd574fab 100644
--- a/.mvn/gradle-enterprise.xml
+++ b/.mvn/gradle-enterprise.xml
@@ -29,7 +29,7 @@
#{env['RELEASE_GITHUB_TOKEN'] == null and properties['no-build-cache'] == null}
- #{env['RELEASE_GITHUB_TOKEN'] == null and properties['no-build-cache'] == null}
+ #{env['RELEASE_GITHUB_TOKEN'] == null and properties['no-build-cache'] == null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null}
#{env['CI'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != '' and env['RELEASE_GITHUB_TOKEN'] == null}