title: In Gradle version catalog file libs.version.toml plugins name is not recognised
body: <p>I am using the version catalog to effectively share the dependency across different Gradle modules in the Android project.</p>
  <p>I am using below <code>libs.versions.toml</code> file</p>
  <pre><code>[versions]
  room = &quot;2.4.0&quot;
  gradlePlugins-agp = &quot;7.0.4&quot;
  
  # Gradle plugins
  gradlePlugins-hilt = &quot;2.40.5&quot;
  
  [libraries]
  androidx-room-common = { module = &quot;androidx.room:room-common&quot;, version.ref = &quot;room&quot; }
  androidx-room-compiler = { module = &quot;androidx.room:room-compiler&quot;, version.ref = &quot;room&quot; }
  androidx-room-ktx = { module = &quot;androidx.room:room-ktx&quot;, version.ref = &quot;room&quot; }
  
  hilt-android = { module = &quot;com.google.dagger:hilt-android&quot;, version.ref = &quot;gradlePlugins-hilt&quot; }
  hilt-kapt = { module = &quot;com.google.dagger:hilt-compiler&quot;, version.ref = &quot;gradlePlugins-hilt&quot; }
  hilt-plugin = { module = &quot;com.google.dagger:hilt-android-gradle-plugin&quot;, version.ref = &quot;gradlePlugins-hilt&quot; }
  
  [plugins]
  android-application = { id = &quot;com.android.application&quot;, version.ref = &quot;gradlePlugins-agp&quot; }
  </code></pre>
  <p>For the above <code>libs.versions.toml</code> file while building the app Gradle build fails with the following error</p>
  <pre><code>org.gradle.api.InvalidUserDataException: Invalid TOML catalog definition:
    - Problem: In version catalog libs, unknown top level elements [plugins].
  
  * Exception is:
  java.lang.RuntimeException: org.gradle.api.InvalidUserDataException: Invalid TOML catalog definition:
    - Problem: In version catalog libs, unknown top level elements [plugins].
      
      Reason: TOML file contains an unexpected top-level element.
      
      Possible solution: Make sure the top-level elements of your TOML file is one of 'bundles', 'libraries', 'metadata' or 'versions'.
      
      Please refer to https://docs.gradle.org/7.0.2/userguide/version_catalog_problems.html#toml_syntax_error for more details about this problem.
  </code></pre>
  <p>While the <a href="https://docs.gradle.org/current/userguide/platforms.html#sec:plugins" rel="noreferrer">documentation</a> clearly states the plugins are supported top-level name in the toml file</p>