fix(gateway-vertx) Print out Apiman and Vert.x version at startup.
MODIFY
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/ApimanVersionCommand.java
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/ApimanVersionCommand.java
@@ -39,7 +39,7 @@ public class ApimanVersionCommand extends DefaultCommand {
log.info("Vert.x " + VersionCommand.getVersion());
}
- private String getApimanVersion() {
+ public static String getApimanVersion() {
if (Version.get().getVersionString().contains("SNAPSHOT")) {
return Version.get().getVersionString() + " @ " + Version.get().getVersionDate();
} else {

MODIFY
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/verticles/InitVerticle.java
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/verticles/InitVerticle.java
*/
package io.apiman.gateway.platforms.vertx3.verticles;
+import io.apiman.gateway.platforms.vertx3.ApimanVersionCommand;
import io.apiman.gateway.platforms.vertx3.common.verticles.VerticleType;
import io.vertx.core.CompositeFuture;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Future;
+import io.vertx.core.impl.launcher.commands.VersionCommand;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
@@ -53,8 +55,12 @@ public class InitVerticle extends ApimanVerticleBase {
log.fatal("Failed to deploy verticles: " + compositeResult.cause().getMessage());
start.fail(compositeResult.cause());
} else {
+ log.info("Apiman Version: {}", ApimanVersionCommand.getApimanVersion());
+ log.info("Vert.x Version: {}", VersionCommand.getVersion());
+
log.info("Successfully deployed all verticles");
log.info("Gateway API port: {}", apimanConfig.getPort(ApiVerticle.VERTICLE_TYPE));
+
start.complete();
}
});

fix(gateway-vertx) Print out Apiman and Vert.x version at startup.