Migration to Vertx 5
Please add any missing hints to this document!
See TC’s draft of Officially Supported Technologies / Trillium document.
Help
Ask on #development Slack channel if a module doesn’t build with Vert.x 5.
Offical Guide
https://vertx.io/docs/guides/vertx-5-migration-guide/
Notable breaking changes
ChattyResponsePredicateremoved. UseChattyHttpResponseExpectationinstead. Example:
Old:client .get(8080, "example.com", "/some-uri") .expect(ChattyResponsePredicate.SC_SUCCESS) .send()New:
client .get(8080, "example.com", "/some-uri") .send() // new order! .expecting(ChattyHttpResponseExpectation.SC_SUCCESS)
GenericCompositeFutureremoved. The same methods exist in Vert.x'Futurenow.Futurization of
Verticle:AbstractVerticlebecomesVerticleBasepublic void start(Promise<Void> promise)becomespublic Future<?> start()public void stop(Promise<Void> promise)becomespublic Future<?> stop()
If the module throws an
IllegalArgumentExceptionon module startup that originates fromorg.folio.okapi.common.logging.FolioLoggingContext.puttry bumping okapi-common to >= 7.0.1 and/or adding ServicesResourceTransformer to maven-shade-plugin. For details see FolioLocal javadoc.