}
// in order to compile sources, we need to resolve dependencies first
// so we have a classpath available
new AddScopedDependenciesTask(ScopeType.values()).execute(session);
final MavenResolutionStrategy scopeStrategy = new AcceptScopesStrategy(scopes);
final Collection<MavenResolvedArtifact> artifactResults = session.resolveDependencies(scopeStrategy);
for (MavenResolvedArtifact artifact : artifactResults) {
String classpathEntry = artifact.asFile().getAbsolutePath();
configuration.addClasspathEntry(classpathEntry);