Adding Dependencies and Starting the Server
Explore how to configure Vert.x dependencies in your Kotlin project and write code to start an asynchronous HTTP server. Understand the role of each library, use a shared version variable to avoid conflicts, and set up a basic request handler to respond with OK. This lesson prepares you to build reactive microservices with Vert.x.
We'll cover the following...
We'll cover the following...
Adding the dependencies
Now, we need to add the following dependencies to our build.gradle.kts file:
val vertxVersion = "4.1.5"
dependencies {
implementation("io.vertx:vertx-core:$vertxVersion")
implementation("io.vertx:vertx-web:$vertxVersion")
implementation("io.vertx:vertx-lang-kotlin:$vertxVersion")
...