SourceSet main = pluginConvention.getSourceSets().add(SourceSet.MAIN_SOURCE_SET_NAME);
SourceSet test = pluginConvention.getSourceSets().add(SourceSet.TEST_SOURCE_SET_NAME);
test.setCompileClasspath(project.files(main.getClasses(), project.getConfigurations().getByName(
TEST_COMPILE_CONFIGURATION_NAME)));
test.setRuntimeClasspath(project.files(test.getClasses(), main.getClasses(),
project.getConfigurations().getByName(TEST_RUNTIME_CONFIGURATION_NAME)));
}
private void configureJavaDoc(final JavaPluginConvention pluginConvention) {
Project project = pluginConvention.getProject();