Fixed it so that 'java-base' instead of 'java' plugin is applied