What is new in Jooby 1.1 ?

Edgar Espina
Apr 6, 2017 · 2 min read

We recently announced a new stable release for Jooby. This new release comes with a couple of new and exciting features.

In this post we are going to talk about some of these features.

Kotlin first-class support

Kotlin support is definitely the most exciting feature in 1.1. It’s well known that Java libraries just works in Kotlin, so library/framework providers don’t need to do anything special.

For example here is how it looks a Jooby application in Kotlin:

Not bad, but there isn’t anything special here we just make one–to-one translation from Java to Kotlin.

Because we love Kotlin, we do provide a Kotlin module which allow us to write idiomatic Kotlin:

Much better, ugh?

The run function is type-safe builder which give you implicit access to a Jooby instance. Same for get function, but this time give you implicit access to the Request object.

Here is another idiom:

The route idiom group one or more route under a common path, like:/api/pets

LiveReload

No more browser refresh button!!

The LiveReload module listen for file changes and automatically reload the browser.

rocker templates

Rocker is a fast, safe and statically typed template engine:

You can efficiently render them from your application:

requery db

Requery is a modern SQL, statically typed persistence engine:

there is more

Hope you enjoy it!

Complete release notes are available here: https://github.com/jooby-project/jooby/releases/tag/v1.1.0