HomeGuidesChangelog
GuidesGitHubLog In
Guides

Gradle

Getting started with Gradle

Release

The projects requires JDK 17. The project is published in Maven Central.
If you use Gradle, you can include Resilience4j modules as follows.


dependencies {
  implementation("io.github.resilience4j:resilience4j-circuitbreaker:${property("resilience4jVersion")}")
  implementation("io.github.resilience4j:resilience4j-ratelimiter:${property("resilience4jVersion")}")
  implementation("io.github.resilience4j:resilience4j-retry:${property("resilience4jVersion")}")
  implementation("io.github.resilience4j:resilience4j-bulkhead:${property("resilience4jVersion")}")
  implementation("io.github.resilience4j:resilience4j-cache:${property("resilience4jVersion")}")
  implementation("io.github.resilience4j:resilience4j-timelimiter:${property("resilience4jVersion")}")
}

repositories {
    mavenCentral()
}

dependencies {
  implementation "io.github.resilience4j:resilience4j-circuitbreaker:${resilience4jVersion}"
  implementation "io.github.resilience4j:resilience4j-ratelimiter:${resilience4jVersion}"
  implementation "io.github.resilience4j:resilience4j-retry:${resilience4jVersion}"
  implementation "io.github.resilience4j:resilience4j-bulkhead:${resilience4jVersion}"
  implementation "io.github.resilience4j:resilience4j-cache:${resilience4jVersion}"
  implementation "io.github.resilience4j:resilience4j-timelimiter:${resilience4jVersion}"
}

If you want to use everything:

dependencies {
  implementation "io.github.resilience4j:resilience4j-all:${resilience4jVersion}"
}

Snapshot

repositories {
   maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}