Updated vertx web api service doc for Gradle 5.0
@@ -27,7 +27,7 @@ To use Vert.x API Service, add the following dependency to the _dependencies_ se
</dependency>
----
-* Gradle (in your `build.gradle` file):
+* Gradle < 5 (in your `build.gradle` file):
[source,groovy,subs="+attributes"]
----
@@ -37,6 +37,17 @@ dependencies {
}
----
+* Gradle >= 5 (in your `build.gradle` file):
+
+[source,groovy,subs="+attributes"]
+----
+dependencies {
+ annotationProcessor 'io.vertx:vertx-codegen:${maven.version}:processor'
+ annotationProcessor 'io.vertx:vertx-web-api-service:${maven.version}'
+ compile 'io.vertx:vertx-web-api-service:${maven.version}'
+}
+----
+
You need to import `vertx-codegen` to trigger the code generation from annotated interfaces
If you want to use the interface you write in different languages, you will need to add the _language_ dependency such as
