Hi,
I believe to have found one issue with the the compiler & gradle build of extension between different sub-modules in a Gradle multi module build and the what happens on the idea.
It works ok, as it build and compiles with no problems in idea but when compiling it on the command line with gradle the client module/project is not able to see the typealias and extensions declared in a project dependency module.
My declaring module has the following declarations:
import io.vertx.core.buffer.Buffer
import io.vertx.core.eventbus.Message
import io.vertx.ext.web.client.HttpRequest
import io.vertx.ext.web.client.HttpResponse
typealias JsonMessage = Message
fun JsonMessage.handleSafely(block: (JsonMessage) → Unit) {
try {
block(this)
} catch (t: Throwable) {
this.fail(-1, t.message)
}
}
fun JsonMessage.onSuccess(response: HttpResponse) {
response.bodyAsString(“ISO-8859-1”).also { this.reply(it) }
}
fun JsonMessage.onError(t: Throwable) = this.fail(1, t.message)