Move extension to java-parent to avoid circle dependency