From 4cac6c0eb9b95884ecd1267307ba04231951046e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20J=C3=B8rgensen=20=28LUJOR=29?= Date: Thu, 31 Jan 2019 10:23:17 +0100 Subject: [PATCH] Make sure that ReporterBuilder is available during batch --- .../com/talanlabs/sonar/plugins/gitlab/ReporterBuilder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/talanlabs/sonar/plugins/gitlab/ReporterBuilder.java b/src/main/java/com/talanlabs/sonar/plugins/gitlab/ReporterBuilder.java index 2f377a8..ba3fdf8 100644 --- a/src/main/java/com/talanlabs/sonar/plugins/gitlab/ReporterBuilder.java +++ b/src/main/java/com/talanlabs/sonar/plugins/gitlab/ReporterBuilder.java @@ -23,6 +23,7 @@ import org.sonar.api.ExtensionPoint; import org.sonar.api.batch.AnalysisMode; import org.sonar.api.batch.ScannerSide; +import org.sonar.api.batch.InstantiationStrategy; import org.sonar.api.batch.rule.Severity; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; @@ -34,6 +35,7 @@ import java.util.Map; import java.util.stream.Stream; +@InstantiationStrategy(InstantiationStrategy.PER_BATCH) @ScannerSide @ExtensionPoint public class ReporterBuilder {