gradle

Plugin

Java

for compile, testCompile in dependencies block.

apply plugin: 'java'