Ah ok, i just need to update WildFly version string to be dynamic.
so will have something like deploymentInfo.setServerName("WildFly ${wildfly.version}");