apply plugin: 'java'

as per @quidryan :-)