With a Kotlin 1.1 (Gradle) project there are some deprecated messages that keep on appearing even though the JVM target is set to 1.8. See messages like the following: Call to static methods in Java interfaces are deprecated in JVM target 1.6. Recompile with … . Have the following in the build.gradle file to set the JVM target:
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
Below is some code which causes the deprecated messages to appear:
val router = Router.router(vertx)
// ...
router.route("/public/*").handler(StaticHandler.create("public"))
router.route("/").handler({ routingCtx ->
val resp = routingCtx.response()
resp.statusCode = Status.OK.num
resp.putHeader("content-type", ContentType.HTML.txt).end(createHomePage())
})
Does the upcoming Kotlin 1.1 update fix this?