Getting Started with Mutiny

To start using Mutiny, you just need to drop a JAR in your classpath

Using Mutiny in a Java application

Add the dependency to your project:

<dependency>
  <groupId>io.smallrye.reactive</groupId>
  <artifactId>mutiny</artifactId>
  <version>1.0.0</version>
</dependency>
implementation 'io.smallrye.reactive:mutiny:1.0.0'
implementation("io.smallrye.reactive:mutiny:1.0.0")
//DEPS io.smallrye.reactive:mutiny:1.0.0

Using Mutiny with Quarkus

Most of the Quarkus extensions with reactive capabilities already depend on Mutiny. You can also add the quarkus-mutiny dependency explicitly:

mvn quarkus:add-extension -Dextensions=mutiny

Or directly add the dependency to your pom.xml

<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-mutiny</artifactId>
</dependency>

Follow the Getting started with reactive guide for more details.

Using the Mutiny BOM

Mutiny provides a BOM to avoid having to declare the version of each module you depend on.

In Maven, use it as follows:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.smallrye.reactive</groupId>
            <artifactId>mutiny-bom</artifactId>
            <version>1.0.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>io.smallrye.reactive</groupId>
        <artifactId>mutiny</artifactId>
    </dependency>
</dependencies>

In Gradle, add:

dependencies {
  implementation platform("io.smallrye.reactive:mutiny-bom:1.0.0")
  implementation("io.smallrye.reactive:mutiny")
}

Using Mutiny with Eclipse Vert.x

API bindings for many popular modules and clients from the Vert.x stack are available from the Smallrye Mutiny Vert.x Bindings project.

Here is how to add a dependency to the Vert.x core library with Mutiny bindings:

<dependency>
  <groupId>io.smallrye.reactive</groupId>
  <artifactId>smallrye-mutiny-vertx-core</artifactId>
  <version>2.6.0</version>
</dependency>

See https://smallrye.io/smallrye-mutiny-vertx-bindings for the complete documentation and instructions.

Direct Download

You can also download the Mutiny JARs directly from Maven Central.