anchor.diff:      </configuration>
   </plugin>
   ----
  +****
  +
  +[role="secondary asciidoc-tabs-sync-gradle-groovy"]
  +.Gradle (Groovy DSL)
  +****
  +[source,groovy,subs=attributes+]
  +----
  +quarkusExtension {
  +    capabilities {
  +        capability 'io.quarkus.rest'
  +        capability 'io.quarkus.resteasy'
  +    }
  +}
  +----
  +
  +NOTE: The Gradle extension plugin is still experimental and may change in the future.
  +
  +****
  +
  +[role="secondary asciidoc-tabs-sync-gradle-kotlin"]
  +.Gradle (Kotlin DSL)
  +****
  +[source,kotlin,subs=attributes+]
  +----
  +quarkusExtension {
  +    capabilities {
  +        capability("io.quarkus.rest")
  +        capability("io.quarkus.resteasy")
  +    }
  +}
  +----
  +NOTE: The Gradle extension plugin is still experimental and may change in the future.
  +****
   
   In this case, the extension is declaring two capabilities.
   
  +
  +
   === Declaring conditional capabilities
   
   A capability may be provided only if a certain condition is satisfied, e.g. if a certain configuration option is enabled or based on some other condition. This could be expressed in the following way:
  +
  +[role="primary asciidoc-tabs-sync-maven"]
  +.Maven
  +****
   [source,xml]
   ----
   <plugin>
  
positive.code: 
  NOTE: `providesIf` allows listing multiple `<positive>` as well as `<negative>` elements.
  
  In this case, `io.quarkus.container.image.openshift.deployment.OpenshiftBuild` should be included in one of the extension deployment dependencies and implement `java.util.function.BooleanSupplier`. At build time, the Quarkus bootstrap will create an instance of it and register `io.quarkus.container.image.openshift` capability only if its `getAsBoolean()` method returns true. 
  
  An implementation of the `OpenshiftBuild` could look like this:
  
negative.code: 
  == Declaring capabilities
  
  The `quarkus-bootstrap-maven-plugin:extension-descriptor` Maven goal and the `extensionDescriptor` Gradle task, generating the extension descriptor, allows to declare provided capabilities in the following way:
  
  [role="primary asciidoc-tabs-sync-maven"]
  .Maven
  ****
  [source,xml]
  ----
  <plugin>
  