When running a Java application using the Java plugin, the build path for resources, e.g. build/main/resources/, is included in the runtime classpath, even if there are no resources in the project and thus the directory does not exist.
This causes problems with libraries such as Scannotation ( http://scannotation.sourceforge.net/ ), which do not expect invalid paths to be present in the classpath.
The Java plugin should either omit the resource path from the classpath if there are no resources in the project, or it should ensure the directory under build is always created, even if it is empty.