The new documentation about how to build a component in Java is here: https://docs.elastic.io/guides/building-java-component.html