---
agentTools:
  projectIndex: https://resilience4j.readme.io/llms.txt
---

# 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.

```kotlin

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")}")
}

```
```groovy
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:

```Text kotlin
dependencies {
  implementation("io.github.resilience4j:resilience4j-all:${resilience4jVersion}")
}
```
```groovy groovy
dependencies {
  implementation "io.github.resilience4j:resilience4j-all:${resilience4jVersion}"
}
```

## Snapshot

```kotlin kotlin
repositories {
    maven {
        url = uri("https://oss.sonatype.org/content/repositories/snapshots")
    }
}
```
```groovy
repositories {
   maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
```