The issue was because of an older version of fabric8. Compatible version to resolve this issue is v7.0.0.