This page lists the Kotlin libraries, frameworks and build tools Niro was tested against, and whether it recognised each one.

What the marks mean.

The test code is made up for the purpose: one small service per library, with the names invented. So "supported" means Niro recognised it there. It is good evidence, but it is not a promise about every codebase. If Niro misses something in your code, the coverage audit reports the gap on its own (see Coverage audit).

The test catalog also holds 4 look-alike cases for Kotlin: code that Niro must NOT take for a route, a call or a store. They test that Niro ignores the look-alike, so they are left out of this page and its counts.

Web frameworks and HTTP servers (the routes your code serves)

4 supported, 0 partly, 2 not yet.

Name Status Ways of using it that were tested
http4k not yet no: routes("path" bind METHOD to handler)
Javalin in Kotlin supported yes: app.get(path) { ctx -> } with a trailing lambda
Ktor Resources (type-safe routing) not yet no: @Resource(path) classes and get<Res> { }
Ktor server supported yes: routing { get(path) { } ; post(path) { } } inside Application.module()
yes: route(prefix) { get { } ; post(sub) { } }
yes: routes declared in a fun Route.x() extension called from routing { }
Spring Web MVC in Kotlin supported yes: @RestController + @RequestMapping prefix + @GetMapping in Kotlin
Spring WebFlux Kotlin DSL supported yes: coRouter { GET(path, handler::fn); "/prefix".nest { GET(sub, h) } }
yes: router { GET(path) { .. } }

The language's own HTTP server

2 supported, 0 partly, 0 not yet.

Name Status Ways of using it that were tested
com.sun.net.httpserver from Kotlin supported yes: server.createContext(path) { exchange -> }
Servlet API from Kotlin supported yes: @WebServlet(path) class X : HttpServlet() { override fun doGet }

HTTP client libraries (the calls your code makes to other services)

3 supported, 2 partly, 1 not yet.

Name Status Ways of using it that were tested
Fuel partly no: "url".httpGet().responseString() string extension
yes: Fuel.post(url).body(..)
Ktor client partly yes: client.get("url/$id") / client.post(url) { setBody(..) }
partly: client.request(url) { method = HttpMethod.Post }
no: client.get { url { protocol; host; port; path(..) } }
yes: HttpClient { defaultRequest { url(base) } } then relative get(path)
OkHttp from Kotlin supported yes: client.newCall(Request.Builder().url(..).post(json.toRequestBody()).build()).execute()
Retrofit with Kotlin suspend functions not yet no: interface with suspend @GET fun, Retrofit.Builder().baseUrl(base)
Spring RestTemplate Kotlin extension supported yes: restTemplate.getForObject<T>(url)
Spring WebClient with coroutines supported yes: webClient.get().uri(path).retrieve().awaitBody<T>()

The language's own HTTP client

1 supported, 1 partly, 1 not yet.

Name Status Ways of using it that were tested
java.net.http from Kotlin partly partly: HttpRequest.newBuilder(URI(x)).GET().build(); http.send(..)
java.net.HttpURLConnection from Kotlin not yet no: (URL(x).openConnection() as HttpURLConnection) with requestMethod = ".."
kotlin.io URL.readText() (stdlib extension) supported yes: URL(x).readText()

gRPC

5 supported, 0 partly, 0 not yet.

Name Status Ways of using it that were tested
grpc-java base in Kotlin with net.devh @GrpcService supported yes: @GrpcService class X : {S}Grpc.{S}ImplBase()
grpc-java client from Kotlin supported yes: {S}Grpc.newBlockingStub(channel).rpc(req), channel forTarget("host:port")
grpc-kotlin supported yes: class X : {S}GrpcKt.{S}CoroutineImplBase() with override suspend fun (and Flow for streams)
grpc-kotlin client supported yes: {S}GrpcKt.{S}CoroutineStub(channel).rpc(req), streams collected as Flow
net.devh @GrpcClient in Kotlin supported yes: @GrpcClient("name") private lateinit var stub: {S}BlockingStub

Databases and data stores

1 supported, 1 partly, 6 not yet.

Name Status Ways of using it that were tested
Android Room partly partly: @Entity(tableName) + @Dao interface with @Query(SQL) / @Insert / @Delete
Exposed (JetBrains) not yet no: object X : Table("name"); transaction { X.selectAll() / X.insert { } / X.deleteWhere { } }
Exposed (JetBrains) DAO not yet no: object X : IntIdTable("name") with an IntEntity; Entity.all() / Entity.new { }
JDBC from Kotlin not yet no: DriverManager.getConnection(..).use { it.prepareStatement(SQL) }
Ktorm not yet no: object X : Table<Nothing>("name"); database.from(X).select() / database.insert(X) { }
MongoDB Kotlin coroutine driver not yet no: database.getCollection<T>("name").find(..) / insertOne
Spring Data (Kotlin coroutines) supported yes: interface : CoroutineCrudRepository<T, Id>, @Table data class
SQLDelight not yet no: .sq file with CREATE TABLE and labelled queries; generated xQueries.label() calls

Messaging and events (queues, topics, streams)

2 supported, 1 partly, 0 not yet.

Name Status Ways of using it that were tested
Apache Kafka clients from Kotlin partly partly: KafkaProducer(props).use { it.send(ProducerRecord(t, k, v)) }; consumer.subscribe(listOf(t))
Spring AMQP in Kotlin supported yes: @RabbitListener(queues = ["literal"]) and rabbitTemplate.convertAndSend
Spring for Apache Kafka in Kotlin supported yes: @KafkaListener(topics = ["literal"]) and kafkaTemplate.send

Build tools and package managers

8 supported, 0 partly, 0 not yet.

Name Status Ways of using it that were tested
Amper (JetBrains) supported yes: project.yaml listing modules, module.yaml with product: jvm/app or jvm/lib, flat src/ and test/
Android Gradle Plugin supported yes: com.android.application module and com.android.library module; Kotlin under src/main/java; test and androidTest
Gradle buildSrc (Kotlin DSL) supported yes: buildSrc with kotlin-dsl precompiled script plugins, plus a .main.kts script
Gradle Kotlin DSL (multi-project) supported yes: settings include(...), a Kotlin application, a Spring Boot Kotlin service and a plain kotlin("jvm") library
Gradle Kotlin DSL (single project) supported yes: one build.gradle.kts with kotlin("jvm") and application, src/main/kotlin and src/test/kotlin
Gradle version catalog (Kotlin) supported yes: alias(libs.plugins.ktor) and implementation(projects.moneyLib)
Kotlin Multiplatform supported yes: shared module with commonMain, jvmMain, jsMain (expect/actual) and commonTest; a JVM server depending on it
Maven + kotlin-maven-plugin supported yes: <sourceDirectory>src/main/kotlin</sourceDirectory> with kotlin-maven-plugin; Spring Boot service and Kotlin library

Project and folder layouts

1 supported, 0 partly, 0 not yet.

Name Status Ways of using it that were tested
Gradle with flat Kotlin source folders supported yes: kotlin.srcDir("src") and srcDir("test") instead of src/main/kotlin