[GH] Use project or artifact for benchmark dependency

Bug: n/a
Test: ./gradlew tasks

This is an imported pull request from https://github.com/androidx/androidx/pull/447.

Resolves #447
Github-Pr-Head-Sha: a400cd2f37077de46b5ff5b74c4cee42908f1986
GitOrigin-RevId: e7d119e7ac300d3ca6e7dd01073f5214bae61474
Change-Id: I3a508a6cb14ae080638b1038346103fc4afb9e20
diff --git a/compose/runtime/settings.gradle b/compose/runtime/settings.gradle
index 152212a..b1ee839 100644
--- a/compose/runtime/settings.gradle
+++ b/compose/runtime/settings.gradle
@@ -31,6 +31,7 @@
         if (name.startsWith(":compose:runtime") && name != ":compose:runtime") return true
         if (name == ":annotation:annotation-sampled") return true
         if (isNeededForComposePlayground(name)) return true
+        if (name == ":compose:benchmark-utils") return true
         return false
     })
 }