Additional Modules

In addition to the core functionality provided by the strikt-core module, Strikt has the following optional modules:

Arrow

Extensions for assertions and traversals on types from the Arrow's functional programming library. See the API docs.

Add the following to your dependencies:

testImplementation("io.strikt:strikt-arrow:0.22.1")

Gradle

Extensions for assertions and traversals on Gradle's test kit. See the API docs.

Add the following to your dependencies:

testImplementation("io.strikt:strikt-gradle:0.22.1")

Jackson

Extensions for assertions and traversals on types Jackson's JsonNode and sub-types. See the API docs.

Add the following to your dependencies:

testImplementation("io.strikt:strikt-jackson:0.22.1")

Java Time

Extensions for assertions and traversals on types from the java.time package. See the API docs.

Add the following to your dependencies:

testImplementation("io.strikt:strikt-java-time:0.22.1")

Protobuf

Extensions for testing code that uses Protobuf / gRPC. See the API docs.

Add the following to your dependencies:

testImplementation("io.strikt:strikt-protobuf:0.22.1")

Spring

Extensions for testing code that uses the Spring Framework. See the API docs.

Add the following to your dependencies:

testImplementation("io.strikt:strikt-spring:0.22.1")

Using the Bill of Materials (BOM)

If you're using multiple Strikt modules (and Gradle >= 5.0) you can import Strikt's BOM and then omit versions for individual modules. For example:

dependencies {
  testImplementation(platform("io.strikt:strikt-bom:0.22.1"))
  testImplementation("io.strikt:strikt-arrow")
  testImplementation("io.strikt:strikt-jackson")
  testImplementation("io.strikt:strikt-java-time")
}