////
This guide is maintained in the main Quarkus repository
and pull requests should be submitted there:
https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc
////
= Quarkus - Gradle Plugin Repositories

include::./attributes.adoc[]

// tag::repositories[]
The Quarkus Gradle plugin is published to the https://plugins.gradle.org/plugin/io.quarkus[Gradle Plugin Portal].

To use it, add the following to your `build.gradle` file:

[source, groovy, subs=attributes+]
----
plugins {
    id 'java'
    id 'io.quarkus'
}
----

You also need to add the following at the top of your `settings.gradle` file:
[source, groovy, subs=attributes+]
----
pluginManagement {
    repositories {
        mavenCentral()
        gradlePluginPortal()
    }
    plugins {
      id 'io.quarkus' version "${quarkusPluginVersion}"
    }
}
----

NOTE:: the `plugins{}` method in `settings.gradle` is not supported in Gradle 5.x. In this case make sure to explicitly declare the plugin version in the `build.gradle` file like the example below:

[source, groovy, subs=attributes+]
----
plugins {
    id 'java'
    id 'io.quarkus' version '{quarkus-version}'
}
----



// end::repositories[]
