Sonar analysis with gradle 2.7 - Could not create plugin of type 'SonarQubePlugin'


(NIC) #1

Hello,
I am unable to execute successfully a simple example to run Sonar (5.3) Analysis using the scanner.

I am using the example at
https://plugins.gradle.org/plugin/org.sonarqube

I get a

  • What went wrong:
    A problem occurred evaluating root project ‘trunk’.

Failed to apply plugin [id ‘org.sonarqube’]
Could not create plugin of type ‘SonarQubePlugin’.

The only difference is that I am using a corporate repo and have copied the jar in there. The first time I ran the example I saw the jar has been copied from the repo so it was found.

Any clues?
THanks

Full StackTrace

Failed to apply plugin [id ‘org.sonarqube’]
Could not create plugin of type ‘SonarQubePlugin’.

  • Try:
    Run with --info or --debug option to get more log output.

  • Exception is:
    org.gradle.api.GradleScriptException: A problem occurred evaluating root project ‘trunk’.
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$1.run(DefaultScriptPluginFactory.java:148)
    at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:72)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:153)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)
    at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)
    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:491)
    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:89)
    at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
    at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
    at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:126)
    at org.gradle.internal.Factories$1.create(Factories.java:22)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:123)
    at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:33)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:100)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:94)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:94)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id ‘org.sonarqube’]
    at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:160)
    at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:112)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:112)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:35)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:79)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:135)
    at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:46)
    at org.gradle.api.plugins.PluginAware$apply.call(Unknown Source)
    at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.groovy:34)
    at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
    at build_34hsk36mcaijqakk00q2i1ikw.run(D:\myproj\trunk\build.gradle:14)
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
    … 47 more
    Caused by: org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type ‘SonarQubePlugin’.
    at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:61)
    at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:135)
    … 58 more
    Caused by: java.lang.NoClassDefFoundError: com/google/common/base/Predicate
    at org.gradle.api.internal.DependencyInjectingInstantiator.selectConstructor(DependencyInjectingInstantiator.java:83)
    at org.gradle.api.internal.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:44)
    at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:59)
    … 59 more
    Caused by: java.lang.ClassNotFoundException: com.google.common.base.Predicate
    … 62 more

BUILD FAILED

Total time: 3.38 secs


Error Gradle 2.7 Calling org.sonarQube plugin - Unable to register extension org.sonar.plugins.csharp.ndeps.sensor.NDepsSensor
(René Groeschke) #2

The problem is, that this plugin seems to have transitive dependencies that you don’t resolve. Most likely because you just copied the jar to your local repo, but not the proper pom file that contains its transitive dependencies.

The easiest way to fix that is to update your local repository manager to proxy the plugin portal (“https://plugins.gradle.org/m2/”). Otherwise you’d need to make all transitive dependencies manually available too.

cheers,
René


(NIC) #3

Thanks this was indeed the issue. I am now able to run the scanner.

:frowning: which fails a little later at :

15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:sonarqube’.
15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] > Unable to register extension org.sonar.plugins.csharp.ndeps.sensor.NDepsSensor


15:30:42]: Process exited with code 1
[15:30:42]: Gradle failure report
[15:30:42]: [Gradle failure report] 15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter]
[15:30:42]: [Gradle failure report] 15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
[15:30:42]: [Gradle failure report] 15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter]
[15:30:42]: [Gradle failure report] 15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
[15:30:42]: [Gradle failure report] 15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:sonarqube’.
[15:30:42]: [Gradle failure report] 15:30:41.806 [ERROR] [org.gradle.BuildExceptionReporter] > Unable to register extension org.sonar.plugins.csharp.ndeps.sensor.NDepsSensor
[15:30:42]: [Gradle failure report] 15:30:41.807 [ERROR] [org.gradle.BuildExceptionReporter]
[15:30:42]: [Gradle failure report] 15:30:41.807 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
[15:30:42]: [Gradle failure report] 15:30:41.815 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:sonarqube’.
[15:30:42]: [Gradle failure report] 15:30:41.815 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
[15:30:42]: [Gradle failure report] 15:30:41.815 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
[15:30:42]: [Gradle failure report] 15:30:41.815 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
[15:30:42]: [Gradle failure report] 15:30:41.815 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
[15:30:42]: [Gradle failure report] 15:30:41.815 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:62)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:155)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152)
[15:30:42]: [Gradle failure report] 15:30:41.816 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:33)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:100)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:94)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:94)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
[15:30:42]: [Gradle failure report] 15:30:41.817 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.IllegalStateException: Unable to register extension org.sonar.plugins.csharp.ndeps.sensor.NDepsSensor
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.addExtension(ComponentContainer.java:238)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.ExtensionInstaller.doInstall(ExtensionInstaller.java:72)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:52)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.scan.ModuleScanContainer.addExtensions(ModuleScanContainer.java:172)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.scan.ModuleScanContainer.doBeforeStart(ModuleScanContainer.java:92)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:130)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:117)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:243)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:238)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:228)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:132)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:117)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.task.ScanTask.execute(ScanTask.java:55)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:132)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:117)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:122)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:67)
[15:30:42]: [Gradle failure report] 15:30:41.818 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.impl.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:61)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at $Proxy51.execute(Unknown Source)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:274)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.api.EmbeddedRunner.runAnalysis(EmbeddedRunner.java:165)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.runner.api.EmbeddedRunner.runAnalysis(EmbeddedRunner.java:152)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonarqube.gradle.SonarQubeTask.run(SonarQubeTask.java:84)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] … 57 more
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: Lorg/sonar/api/resources/ProjectFileSystem;
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.injectors.AdaptingInjection$2.run(AdaptingInjection.java:217)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.injectors.AdaptingInjection.injectionFieldAnnotated(AdaptingInjection.java:209)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.injectors.AdaptingInjection.fieldAnnotatedInjectionAdapter(AdaptingInjection.java:188)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.injectors.AdaptingInjection.createComponentAdapter(AdaptingInjection.java:57)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.behaviors.AbstractBehaviorFactory.createComponentAdapter(AbstractBehaviorFactory.java:44)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.behaviors.OptInCaching.createComponentAdapter(OptInCaching.java:45)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:536)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.DefaultPicoContainer.access$300(DefaultPicoContainer.java:84)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1149)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.core.platform.ComponentContainer.addExtension(ComponentContainer.java:236)
[15:30:42]: [Gradle failure report] 15:30:41.819 [ERROR] [org.gradle.BuildExceptionReporter] … 90 more
[15:30:42]: [Gradle failure report] 15:30:41.820 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: org.sonar.api.resources.ProjectFileSystem
[15:30:42]: [Gradle failure report] 15:30:41.820 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
[15:30:42]: [Gradle failure report] 15:30:41.820 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
[15:30:42]: [Gradle failure report] 15:30:41.820 [ERROR] [org.gradle.BuildExceptionReporter] at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
[15:30:42]: [Gradle failure report] 15:30:41.820 [ERROR] [org.gradle.BuildExceptionReporter] … 100 more
[15:30:42]: [Gradle failure report] 15:30:41.820 [ERROR] [org.gradle.BuildExceptionReporter]
[15:30:42]: Publishing internal artifacts
[15:30:42]: [Publishing internal artifacts] Sending build.finish.properties.gz file
[15:30:42]: Build finished


(NIC) #4

Note - this was fixed by downgrading the csharp plugin on server side.