thufir@mordor:~/java/hello_gradle$ thufir@mordor:~/java/hello_gradle$ gradle build :compileJava /home/thufir/java/hello_gradle/src/main/java/hello/HelloWorld.java:8: error: cannot find symbol @Test public void testHello() { ^ symbol: class Test location: class HelloWorld /home/thufir/java/hello_gradle/src/main/java/hello/HelloWorld.java:10: error: cannot find symbol Assert.assertEquals(12, message.length()); ^ symbol: variable Assert location: class HelloWorld 2 errors :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 4.561 secs thufir@mordor:~/java/hello_gradle$