aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/bootstrap
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-01-19 16:52:44 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-01-20 09:34:15 +0100
commit143fa804c8bc20968026caa376f3922f795cb6c7 (patch)
tree1874de17ccffc448bdfdbf758b04154abb86384c /sonar-batch/src/main/java/org/sonar/batch/bootstrap
parent7d9bc94ca237710ea1cddfdeb956fb6a3f136efd (diff)
downloadsonarqube-143fa804c8bc20968026caa376f3922f795cb6c7.tar.gz
sonarqube-143fa804c8bc20968026caa376f3922f795cb6c7.zip
SONAR-6060 Move console issues report to the batch
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchComponents.java4
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapContainer.java4
2 files changed, 7 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchComponents.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchComponents.java
index a531afc577a..42c78ea50ba 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchComponents.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchComponents.java
@@ -30,6 +30,7 @@ import org.sonar.batch.maven.DefaultMavenPluginExecutor;
import org.sonar.batch.maven.MavenProjectBootstrapper;
import org.sonar.batch.maven.MavenProjectBuilder;
import org.sonar.batch.maven.MavenProjectConverter;
+import org.sonar.batch.scan.report.ConsoleReport;
import org.sonar.batch.scm.ScmConfiguration;
import org.sonar.batch.scm.ScmSensor;
import org.sonar.batch.source.LinesSensor;
@@ -64,6 +65,9 @@ public class BatchComponents {
LinesSensor.class,
+ // Reports
+ ConsoleReport.class,
+
// dbcleaner
DefaultPeriodCleaner.class,
DefaultPurgeTask.class
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapContainer.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapContainer.java
index ca174d3a80a..75071b09ef1 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapContainer.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapContainer.java
@@ -40,6 +40,7 @@ import org.sonar.batch.referential.DefaultProjectReferentialsLoader;
import org.sonar.batch.referential.GlobalReferentialsLoader;
import org.sonar.batch.referential.GlobalReferentialsProvider;
import org.sonar.batch.referential.ProjectReferentialsLoader;
+import org.sonar.batch.user.UserRepository;
import org.sonar.core.cluster.NullQueue;
import org.sonar.core.config.Logback;
import org.sonar.core.i18n.DefaultI18n;
@@ -104,7 +105,8 @@ public class BootstrapContainer extends ComponentContainer {
UriReader.class,
new FileCacheProvider(),
System2.INSTANCE,
- new GlobalReferentialsProvider());
+ new GlobalReferentialsProvider(),
+ UserRepository.class);
if (getComponentByType(PluginsReferential.class) == null) {
add(DefaultPluginsReferential.class);
}