Fixed it so that 'java-base' instead of 'java' plugin is applied in the plugin. Applying 'java' is now a choice of the user